Skip to main content

Module ops

Module ops 

Source
Expand description

Dialect-generic CRUD operations.

Core functions accept any Executor so the same CRUD runs against a pool or an in-flight transaction. [Pool] and [Transaction] delegate to these functions.

Functionsยง

delete
Delete an entity by its primary key.
fetch_all
Execute a raw SQL query and return all matching rows.
find_all
Fetch all entities of this type.
find_by_id
Find an entity by its primary key.
insert
Insert a new entity and return it.
update
Update an existing entity (matched by id) and return the updated row.