Class: PgCanary::SchemaIntrospection::IndexInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/pg_canary/schema_introspection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnsObject

Returns the value of attribute columns

Returns:

  • (Object)

    the current value of columns



9
10
11
# File 'lib/pg_canary/schema_introspection.rb', line 9

def columns
  @columns
end

#expressionsObject

Returns the value of attribute expressions

Returns:

  • (Object)

    the current value of expressions



9
10
11
# File 'lib/pg_canary/schema_introspection.rb', line 9

def expressions
  @expressions
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/pg_canary/schema_introspection.rb', line 9

def name
  @name
end

#opclassesObject

Returns the value of attribute opclasses

Returns:

  • (Object)

    the current value of opclasses



9
10
11
# File 'lib/pg_canary/schema_introspection.rb', line 9

def opclasses
  @opclasses
end

#usingObject

Returns the value of attribute using

Returns:

  • (Object)

    the current value of using



9
10
11
# File 'lib/pg_canary/schema_introspection.rb', line 9

def using
  @using
end

Instance Method Details

#leading_columnObject



17
18
19
# File 'lib/pg_canary/schema_introspection.rb', line 17

def leading_column
  columns.first
end