Method
Create
(c *sqlite3.SQLiteConn, args []string)
Source from the content-addressed store, hash-verified
| 20 | } |
| 21 | |
| 22 | func (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 | |
| 36 | func (m *githubModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error) { |
| 37 | return m.Create(c, args) |
Tested by
no test coverage detected