-
-
Notifications
You must be signed in to change notification settings - Fork 340
internal::storage_t
Yevgeniy Zakharov edited this page Oct 13, 2021
·
2 revisions
namespace sqlite_orm {
namespace internal {
template<class ...Ts>
struct storage_t;
}
}Basic class used for interacting with sqlite database engine (libsqlite3). You do not have to create it explicitly with its constructor. Instead please use make_storage function.
-
get -
SELECT * FROMby primary key -
get_no_throw -
SELECT * FROMby primary key without throwing an exception in not found case -
update -
UPDATEby primary key -
remove -
DELETE * FROMby primary key -
replace -
INSERT OR REPLACEby primary key -
replace_range -
INSERT OR REPLACEby primary key multiple rows within single query
-
insert -
INSERT INTO table (...) VALUES (...) -
insert_range -
INSERT INTO table (...) VALUES (...), (...), (...) ... -
update_all -
UPDATEwithout primary key -
get_all -
SELECT * FROMwith or without conditions -
select -
SELECT column FROMwith or without conditions -
remove_all -
DELETE * FROMwith or without conditions
-
count -
SELECT COUNT(*) FROMandSELECT COUNT(column) FROM -
avg -
SELECT AVG(column) FROM -
group_concat -
SELECT GROUP_CONCAT(column) FROM -
max -
SELECT MAX(column) FROM -
min -
SELECT MIN(column) FROM -
sum -
SELECT SUM(column) FROM -
total -
SELECT TOTAL(column) FROM
- dump - Create a string representation of an object
-
drop_table -
DROP TABLE table -
changes -
sqlite3_changes() -
total_changes -
sqlite3_total_changes() - sync_schema - Check db schema equality and fix if something is wrong
-
sync_schema_simulate - Returns the same result as
sync_schemadoes but doesn't perform any changes in the db -
current_timestamp -
SELECT CURRENT_TIMESTAMP -
last_insert_rowid -
last_insert_rowid() - iterate - Get STL compatible container
-
table_names - Get
std::vector<std::string>of actual table names in database - open_forever - Open database connection and never close it. Useful for multithreaded access
- transaction - Implicit transaction with a lambda
-
begin_transaction -
BEGIN TRANSACTION -
commit -
COMMIT -
rollback -
ROLLBACK - transaction_guard - Guard class that begins a transaction and rollbacks/commits it on destroy
-
user_version -
PRAGMA user_version -
synchronous -
PRAGMA synchronous