class Data::Pg::Meta
- Data::Pg::Meta
- Reference
- Object
Defined in:
data/pg/meta.cr:1data/pg/meta.cr:41
Constructors
Class Method Summary
- .from_csv(buf : String) : Hash(String, Meta)
- .query(table : String | Nil = nil, ignore_pg_catalog : Bool = false) : String
Instance Method Summary
-
#columns : 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 : 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? : Array(Column) | Nil
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
- #table : String
- #table=(v : String) : String
-
#table=(v : Nil)
nil
assignments are always ignored - #table? : String | Nil
- #to_clickhouse : Clickhouse::Schema::Create
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Instance methods inherited from class Object
to_toml : String
to_toml
Constructor Detail
Class Method Detail
Instance Method Detail
var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"
var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"
var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"
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>