module Crecto::Adapters::BaseAdapter

Overview

BaseAdapter module Extended by actual adapters

Defined in:

crecto/adapters/base_adapter.cr

Instance Method Summary

Instance Method Detail

def aggregate(conn, queryable, ag, field, query : Crecto::Repo::Query) #

[View source]
def aggregate(conn, queryable, ag, field) #

[View source]
def exec_execute(conn, query_string, params) #

[View source]
def exec_execute(conn, query_string) #

[View source]
def execute(conn, query_string, params) #

[View source]
def execute(conn, query_string) #

[View source]
def run(conn : DB::Database | DB::Transaction, operation : Symbol, queryable, query : Crecto::Repo::Query, query_hash : Hash) #

[View source]
def run(conn : DB::Database | DB::Transaction, operation : Symbol, queryable, id : Int32 | Int64 | String | Nil) #

Query data store using an id, returning a single record.


[View source]
def run(conn : DB::Database | DB::Transaction, operation : Symbol, queryable, query : Crecto::Repo::Query) #

Query data store using a query


[View source]
def run(conn : DB::Database | DB::Transaction, operation : Symbol, sql : String, params : Array(DbValue)) #

Query data store using sql, returning multiple rows


[View source]
def run_on_instance(conn : DB::Database | DB::Transaction, operation, changeset) #

Query data store in relation to a queryable_instance of Schema


[View source]