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

Method connect

examples/characters.rs:36–44  ·  view source on GitHub ↗
(
        _db: *mut sqlite3,
        _aux: Option<&Self::Aux>,
        _args: VTabArguments,
    )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected