class

Data::Pg::Column

Inherits Reference < Object

Constructors

new(num : Int32 | Nil, name : Nil | String, type : Nil | String, not_null : Bool | Nil, primary_key : Bool | Nil)
Source

Instance methods

bool?
Source
name
name=(v : String) : String
name=(v : Nil)

nil assignments are always ignored

name?
not_null
not_null=(v : Bool) : Bool
not_null=(v : Nil)

nil assignments are always ignored

not_null?
num
num=(v : Int32) : Int32
num=(v : Nil)

nil assignments are always ignored

num?
primary_key
primary_key=(v : Bool) : Bool
primary_key=(v : Nil)

nil assignments are always ignored

primary_key?
timestamp?
Source
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
type
type=(v : String) : String
type=(v : Nil)

nil assignments are always ignored

type?