class Data::Pg::Column

Defined in:

data/pg/column.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def bool? : Bool #

[View source]
def name : String #

def name=(v : String) : String #

def name=(v : Nil) #

nil assignments are always ignored


def name? : String | Nil #

def not_null : Bool #

def not_null=(v : Bool) : Bool #

def not_null=(v : Nil) #

nil assignments are always ignored


def not_null? : Bool #

def num : Int32 #

def num=(v : Int32) : Int32 #

def num=(v : Nil) #

nil assignments are always ignored


def num? : Int32 | Nil #

def primary_key : Bool #

def primary_key=(v : Bool) : Bool #

def primary_key=(v : Nil) #

nil assignments are always ignored


def primary_key? : Bool #

def timestamp? #

[View source]
def to_clickhouse : Clickhouse::Column #

[View source]
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>

[View source]
def type : String #

def type=(v : String) : String #

def type=(v : Nil) #

nil assignments are always ignored


def type? : String | Nil #