MCPcopy Create free account
hub / github.com/asg017/sqlite-loadable-rs / connect

Method connect

tests/test_find_function.rs:38–47  ·  view source on GitHub ↗
(
        _db: *mut sqlite3,
        _aux: Option<&Self::Aux>,
        _args: VTabArguments,
    )

Source from the content-addressed store, hash-verified

36 type Cursor = FindCursor;
37
38 fn connect(
39 _db: *mut sqlite3,
40 _aux: Option<&Self::Aux>,
41 _args: VTabArguments,
42 ) -> Result<(String, FindTable)> {
43 let base: sqlite3_vtab = unsafe { mem::zeroed() };
44 let vtab = FindTable { base };
45 // TODO db.config(VTabConfig::Innocuous)?;
46 Ok((CREATE_SQL.to_owned(), vtab))
47 }
48 fn destroy(&self) -> Result<()> {
49 Ok(())
50 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected