pub struct SqliteChannelRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqliteChannelRepository
impl SqliteChannelRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl ChannelRepository for SqliteChannelRepository
impl ChannelRepository for SqliteChannelRepository
Source§fn update(&self, id: ChannelId, input: UpdateChannel) -> Result<Channel>
fn update(&self, id: ChannelId, input: UpdateChannel) -> Result<Channel>
Update a channel (PATCH/merge semantics).
Source§fn delete(&self, id: ChannelId) -> Result<()>
fn delete(&self, id: ChannelId) -> Result<()>
Soft-delete a channel. Errors if the channel is API-locked.
Source§fn set_lock(&self, id: ChannelId, locked: bool) -> Result<Channel>
fn set_lock(&self, id: ChannelId, locked: bool) -> Result<Channel>
Set the channel’s lock state, blocking/allowing external mutations.
Source§fn sync_products(
&self,
id: ChannelId,
items: Vec<ChannelProductSyncItem>,
) -> Result<u64>
fn sync_products( &self, id: ChannelId, items: Vec<ChannelProductSyncItem>, ) -> Result<u64>
Bulk upsert/delete channel SKU mappings. Returns the affected count.
Source§fn list_product_mappings(
&self,
id: ChannelId,
) -> Result<Vec<ChannelProductMapping>>
fn list_product_mappings( &self, id: ChannelId, ) -> Result<Vec<ChannelProductMapping>>
List a channel’s SKU mappings.
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteChannelRepository
impl !UnwindSafe for SqliteChannelRepository
impl Freeze for SqliteChannelRepository
impl Send for SqliteChannelRepository
impl Sync for SqliteChannelRepository
impl Unpin for SqliteChannelRepository
impl UnsafeUnpin for SqliteChannelRepository
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