def primary_key : Bool
#
class Data::Pg::Column
- Data::Pg::Column
- Reference
- Object
Defined in:
data/pg/column.crConstructors
Instance Method Summary
- #bool? : Bool
- #name : String
- #name=(v : String) : String
-
#name=(v : Nil)
nil
assignments are always ignored - #name? : String | Nil
- #not_null : Bool
- #not_null=(v : Bool) : Bool
-
#not_null=(v : Nil)
nil
assignments are always ignored - #not_null? : Bool
- #num : Int32
- #num=(v : Int32) : Int32
-
#num=(v : Nil)
nil
assignments are always ignored - #num? : Int32 | Nil
- #primary_key : Bool
- #primary_key=(v : Bool) : Bool
-
#primary_key=(v : Nil)
nil
assignments are always ignored - #primary_key? : Bool
- #timestamp?
- #to_clickhouse : Clickhouse::Column
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #type : String
- #type=(v : String) : String
-
#type=(v : Nil)
nil
assignments are always ignored - #type? : String | Nil
Instance methods inherited from class Object
to_toml : String
to_toml
Constructor Detail
def self.new(num : Int32 | Nil, name : Nil | String, type : Nil | String, not_null : Bool | Nil, primary_key : Bool | Nil)
#
Instance Method Detail
def to_s(io : IO)
#
Description copied from class Reference
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>