class Pon::Placeholder

Defined in:

pon/placeholder.cr

Constant Summary

PARAM_REGEX = /{{([a-z0-9_]+)}}/

Constructors

Instance Method Summary

Constructor Detail

def self.new(template : String) #

[View source]

Instance Method Detail

def bind(key : String, val : String) : Placeholder #

[View source]
def bind(**params) : Placeholder #

[View source]
def build : String #

[View source]
def defined_params : Set(String) #

def defined_params=(v : Set(String)) : Set(String) #

def defined_params=(v : Nil) #

nil assignments are always ignored


def defined_params? : Set(String) | Nil #

def sql : String #

[View source]
def unbound_params : Set(String) #

def unbound_params=(v : Set(String)) : Set(String) #

def unbound_params=(v : Nil) #

nil assignments are always ignored


def unbound_params? : Set(String) | Nil #