module Jennifer::Adapter
Defined in:
jennifer/adapter.crjennifer/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
-
.adapter
DEPRECATED Use .default_adapter instead
-
.adapter_class
DEPRECATED Use .default_adapter_class instead
-
.adapters
Returns hash with all registered adapter classes
-
.default_adapter
Returns adapter instance.
-
.default_adapter_class
Returns adapter class.
-
.register_adapter(name : String, adapter_class)
Registers adapter adapter_class with name name.
Class Method Detail
def self.default_adapter
#
Returns adapter instance.
The first call of this method greps all models table column numbers.
def self.register_adapter(name : String, adapter_class)
#
Registers adapter adapter_class with name name.