class Pon::Context(T)

Defined in:

pon/context.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(database : Nil | DB::Database, placeholder : Nil | Pon::Placeholder) #

[View source]

Instance Method Detail

def all #

[View source]
def bind(*args, **opts) #

[View source]
def csv(header : Bool = false, quoting : CSV::Builder::Quoting = :rfc) #

[View source]
def database : DB::Database #

def database=(v : DB::Database) : DB::Database #

def database=(v : Nil) #

nil assignments are always ignored


def database? : DB::Database | Nil #

def placeholder : Pon::Placeholder #

def placeholder=(v : Pon::Placeholder) : Pon::Placeholder #

def placeholder=(v : Nil) #

nil assignments are always ignored


def placeholder? : Pon::Placeholder | Nil #

def scalar #

[View source]
def sql(*args, **options) #

[View source]
def sql(*args, **options, &) #

[View source]
def template(*args, **options) #

[View source]
def template(*args, **options, &) #

[View source]