Skip to main content

WasiSqlCtx

Trait WasiSqlCtx 

Source
pub trait WasiSqlCtx:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn open(&self, name: String) -> FutureResult<Arc<dyn Connection>>;
}
Expand description

A trait which provides internal WASI SQL context.

This is implemented by the resource-specific provider of SQL functionality. For example, PostgreSQL, MySQL, SQLite, etc.

Required Methods§

Source

fn open(&self, name: String) -> FutureResult<Arc<dyn Connection>>

Open a connection to the database.

Implementors§