MCPcopy Create free account
hub / github.com/mattn/go-sqlite3 / Create

Method Create

_example/vtable/vtable.go:22–34  ·  view source on GitHub ↗
(c *sqlite3.SQLiteConn, args []string)

Source from the content-addressed store, hash-verified

20}
21
22func (m *githubModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error) {
23 err := c.DeclareVTab(fmt.Sprintf(`
24 CREATE TABLE %s (
25 id INT,
26 full_name TEXT,
27 description TEXT,
28 html_url TEXT
29 )`, args[0]))
30 if err != nil {
31 return nil, err
32 }
33 return &ghRepoTable{}, nil
34}
35
36func (m *githubModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error) {
37 return m.Create(c, args)

Callers 1

ConnectMethod · 0.95

Calls 1

DeclareVTabMethod · 0.80

Tested by

no test coverage detected