class Focus::SQLiteDatabase

Defined in:

sqlite/sqlite_database.cr

Constructors

Instance Method Summary

Instance methods inherited from class Focus::Database

close : Nil close, delete(table : Focus::Table, where : ColumnDeclaring(Bool)) : Int64 delete, delete_all(table : Focus::Table) : Int64 delete_all, execute_insert_and_return_generated_key(expression : Focus::InsertExpression, column : Focus::BaseColumn) : DB::ResultSet execute_insert_and_return_generated_key, execute_query(expression : Focus::SqlExpression) : DB::ResultSet execute_query, execute_update(expression : Focus::SqlExpression) : Int64 execute_update, format_expression(expression : Focus::SqlExpression) : Tuple(String, Array(Focus::BaseArgumentExpression)) format_expression, from(table : Focus::Table) : Focus::QuerySource from, insert(table : Focus::Table, &) : Int64 insert, insert_returning_generated_key(table : Focus::Table, column : Focus::Column(T), &) : T forall T insert_returning_generated_key, setup_connection(&block : DB::Connection -> _) setup_connection, update(table : Focus::Table, &) : Int64 update, with_connection(&block : DB::Connection -> T) : T forall T with_connection, with_transaction(&block : DB::Transaction -> T) : T | Nil forall T with_transaction

Constructor methods inherited from class Focus::Database

connect(url : String) : Database
connect(db : DB::Database) : Database
connect
, new(raw_db : DB::Database) new

Constructor Detail

def self.connect(url : String) : SQLiteDatabase #

[View source]
def self.connect(db : DB::Database) : SQLiteDatabase #

[View source]

Instance Method Detail

def execute_insert_and_return_generated_key(expression : Focus::InsertExpression, column : Focus::BaseColumn) : DB::ResultSet #

[View source]
def format_expression(expression : Focus::SqlExpression) : Tuple(String, Array(Focus::BaseArgumentExpression)) #

[View source]