module Jennifer::Adapter

Defined in:

jennifer/adapter.cr
jennifer/adapter/base.cr
jennifer/adapter/base_sql_generator.cr
jennifer/adapter/command_shell/bash.cr
jennifer/adapter/command_shell/command.cr
jennifer/adapter/command_shell/docker.cr
jennifer/adapter/command_shell/i_command_shell.cr
jennifer/adapter/db_command_interface.cr
jennifer/adapter/db_formatter.cr
jennifer/adapter/json_encoder.cr
jennifer/adapter/quoting.cr
jennifer/adapter/request_methods.cr
jennifer/adapter/result_parsers.cr
jennifer/adapter/schema_processor.cr
jennifer/adapter/transaction_observer.cr
jennifer/adapter/transactions.cr

Constant Summary

TYPES = [:tinyint, :integer, :short, :bigint, :oid, :float, :double, :numeric, :decimal, :bool, :string, :char, :text, :varchar, :blchar, :uuid, :timestamp, :timestamptz, :date_time, :date, :blob, :bytea, :json, :jsonb, :xml, :point, :lseg, :path, :box, :polygon, :line, :circle] of ::Symbol

Class Method Summary

Class Method Detail

def self.adapter #

DEPRECATED Use .default_adapter instead


[View source]
def self.adapter_class #

DEPRECATED Use .default_adapter_class instead


[View source]
def self.adapters #

Returns hash with all registered adapter classes


[View source]
def self.default_adapter #

Returns adapter instance.

The first call of this method greps all models table column numbers.


[View source]
def self.default_adapter_class #

Returns adapter class.


[View source]
def self.register_adapter(name : String, adapter_class) #

Registers adapter adapter_class with name name.


[View source]