pub enum DbOp {
Get,
List,
Paginate,
Insert,
Update,
Delete,
Lookup,
Query,
QueryGraph,
Link,
Unlink,
Search,
}Expand description
Database operations available to TypeScript functions.
Variants§
Get
List
Paginate
Cursor-paginated list. Uses after + limit on DbOpMessage.
Response shape: { page: Row[], nextCursor: string | null, isDone: bool }.
Insert
Update
Delete
Lookup
Query
QueryGraph
Link
Unlink
Search
Faceted full-text search. The query body is whatever the entity
declares in its search: config — query string, filters,
facets, sort, page, pageSize. Carried on data.
Response shape: { hits, facetCounts, total, tookMs }.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DbOp
impl<'de> Deserialize<'de> for DbOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for DbOp
impl Eq for DbOp
impl StructuralPartialEq for DbOp
Auto Trait Implementations§
impl Freeze for DbOp
impl RefUnwindSafe for DbOp
impl Send for DbOp
impl Sync for DbOp
impl Unpin for DbOp
impl UnsafeUnpin for DbOp
impl UnwindSafe for DbOp
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