class

Data::Pg::Meta

Inherits Reference < Object

Constructors

new(table : Nil | String, columns : Nil | Array(Data::Pg::Column) = nil)
Source

Class methods

from_csv(buf : String) : Hash(String, Meta)
Source
query(table : String | Nil = nil, ignore_pg_catalog : Bool = false) : String
Source

Instance methods

columns

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"

columns=(v : Array(Column)) : Array(Column)

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"

columns=(v : Nil)

nil assignments are always ignored

columns?

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"

data_sql(pg_before_sql : String) : String
Source
table
table=(v : String) : String
table=(v : Nil)

nil assignments are always ignored

table?
to_clickhouse
Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source

Nested types