Class: Pcrd::Replication::Pgoutput::Messages::Relation

Inherits:
Data
  • Object
show all
Defined in:
lib/pcrd/replication/pgoutput/messages.rb

Overview

R — relation (table schema snapshot) id: Integer — relation OID namespace: String — schema name (empty for pg_catalog) name: String — table name replica_identity: String — one of ‘d’, ‘n’, ‘f’, ‘i’ columns: Array<RelationColumn>

Instance Attribute Summary collapse

Instance Attribute Details

#columnsObject (readonly)

Returns the value of attribute columns

Returns:

  • (Object)

    the current value of columns



40
41
42
# File 'lib/pcrd/replication/pgoutput/messages.rb', line 40

def columns
  @columns
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



40
41
42
# File 'lib/pcrd/replication/pgoutput/messages.rb', line 40

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



40
41
42
# File 'lib/pcrd/replication/pgoutput/messages.rb', line 40

def name
  @name
end

#namespaceObject (readonly)

Returns the value of attribute namespace

Returns:

  • (Object)

    the current value of namespace



40
41
42
# File 'lib/pcrd/replication/pgoutput/messages.rb', line 40

def namespace
  @namespace
end

#replica_identityObject (readonly)

Returns the value of attribute replica_identity

Returns:

  • (Object)

    the current value of replica_identity



40
41
42
# File 'lib/pcrd/replication/pgoutput/messages.rb', line 40

def replica_identity
  @replica_identity
end