pub trait SqliteService:
Send
+ Sync
+ 'static {
type QueryStreamStream: Stream<Item = Result<QueryResponse, Status>> + Send + 'static;
Show 13 methods
// Required methods
fn execute_script<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn execute_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteBatchRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteBatchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query_json<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryJsonResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::QueryStreamStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn tokenize_text<'life0, 'async_trait>(
&'life0 self,
request: Request<TokenizeTextRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TokenizeTextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_custom_words<'life0, 'async_trait>(
&'life0 self,
request: Request<ListCustomWordsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListCustomWordsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn upsert_custom_word<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertCustomWordRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DictionaryMutationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove_custom_word<'life0, 'async_trait>(
&'life0 self,
request: Request<RemoveCustomWordRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DictionaryMutationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn ensure_fts_index<'life0, 'async_trait>(
&'life0 self,
request: Request<EnsureFtsIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<EnsureFtsIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn rebuild_fts_index<'life0, 'async_trait>(
&'life0 self,
request: Request<RebuildFtsIndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RebuildFtsIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn upsert_fts_document<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertFtsDocumentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FtsMutationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_fts_document<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFtsDocumentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FtsMutationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search_fts<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchFtsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchFtsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with SqliteServiceServer.
Required Associated Types§
Sourcetype QueryStreamStream: Stream<Item = Result<QueryResponse, Status>> + Send + 'static
type QueryStreamStream: Stream<Item = Result<QueryResponse, Status>> + Send + 'static
Server streaming response type for the QueryStream method.