abstract class DBX::Adapter::Base
- DBX::Adapter::Base
- Reference
- Object
Overview
Base adapter.
Direct Known Subclasses
Defined in:
adapter/adapter.crConstructors
Class Method Summary
-
.builder_class : QueryBuilder.class
Returns query builder class.
-
.new_builder : QueryBuilder
Returns a new query builder instance.
Instance Method Summary
-
#create!(query : DBX::Query, data : Hash | NamedTuple, as types, returning : DBX::QueryBuilder::OneOrMoreFieldsType = "*", pk_name : DBX::QueryBuilder::FieldType = :id, pk_type = ::Union(Int64, ::Nil))
Creates a new record and returns.
- #db : DB::Database
-
#new_builder : QueryBuilder
Returns a new query builder instance.
Constructor Detail
Class Method Detail
Instance Method Detail
abstract
def create!(query : DBX::Query, data : Hash | NamedTuple, as types, returning : DBX::QueryBuilder::OneOrMoreFieldsType = "*", pk_name : DBX::QueryBuilder::FieldType = :id, pk_type = ::Union(Int64, ::Nil))
#
Creates a new record and returns.
See DBX::Query#create!
for more details.