Skip to main content

Module sql

Module sql 

Source
Expand description

SQL helpers

Re-exports§

pub use reusable_executor::ReusableExecutor;

Modules§

reusable_executor

Traits§

FormatPlaceholder
There is a similar function here: sqlx::Arguments::format_placeholder but thats only really usable via the sqlx::QueryBuilder which is highly undocumented and does not seem to be of great use here.
LastInsertedRowId
RowsAffected

Functions§

generic_delete_all
generic_delete_by_id
Returns
generic_id_exists
generic_insert_many_with_id
Inserts many rows, with the id column (same shape as generic_insert_with_id per row).
generic_insert_many_without_id
Inserts many rows, omitting the id column (same shape as generic_insert_returning_id per row).
generic_insert_returning_id
generic_insert_with_id
generic_insert_without_id
generic_select_all
generic_select_all_no_id
Like generic_select_all but for entities without an id column; selects all columns from Schema::columns with no ORDER BY.
generic_select_by_id
generic_select_by_ids
generic_update_by_id
Returns