pub struct SqliteCustomObjectRepository { /* private fields */ }Available on crate feature
sqlite only.Expand description
SQLite implementation of CustomObjectRepository
Implementations§
Source§impl SqliteCustomObjectRepository
impl SqliteCustomObjectRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl CustomObjectRepository for SqliteCustomObjectRepository
impl CustomObjectRepository for SqliteCustomObjectRepository
fn create_type(&self, input: CreateCustomObjectType) -> Result<CustomObjectType>
fn get_type(&self, id: Uuid) -> Result<Option<CustomObjectType>>
fn get_type_by_handle(&self, handle: &str) -> Result<Option<CustomObjectType>>
fn update_type( &self, id: Uuid, input: UpdateCustomObjectType, ) -> Result<CustomObjectType>
fn list_types( &self, filter: CustomObjectTypeFilter, ) -> Result<Vec<CustomObjectType>>
fn delete_type(&self, id: Uuid) -> Result<()>
fn create_object(&self, input: CreateCustomObject) -> Result<CustomObject>
fn get_object(&self, id: Uuid) -> Result<Option<CustomObject>>
fn get_object_by_handle( &self, type_handle: &str, object_handle: &str, ) -> Result<Option<CustomObject>>
fn update_object( &self, id: Uuid, input: UpdateCustomObject, ) -> Result<CustomObject>
fn list_objects(&self, filter: CustomObjectFilter) -> Result<Vec<CustomObject>>
fn delete_object(&self, id: Uuid) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteCustomObjectRepository
impl !UnwindSafe for SqliteCustomObjectRepository
impl Freeze for SqliteCustomObjectRepository
impl Send for SqliteCustomObjectRepository
impl Sync for SqliteCustomObjectRepository
impl Unpin for SqliteCustomObjectRepository
impl UnsafeUnpin for SqliteCustomObjectRepository
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more