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§
Sourcefn open(&self, name: String) -> FutureResult<Arc<dyn Connection>>
fn open(&self, name: String) -> FutureResult<Arc<dyn Connection>>
Open a connection to the database.