Close this source, closing the underlying sqlite db file
()
| 148 | |
| 149 | // Close this source, closing the underlying sqlite db file |
| 150 | func (m *Source) Close() error { |
| 151 | if m.db != nil { |
| 152 | err := m.db.Close() |
| 153 | if err != nil { |
| 154 | return err |
| 155 | } |
| 156 | m.db = nil |
| 157 | } |
| 158 | return nil |
| 159 | } |
| 160 | |
| 161 | func tableFromSQL(name, sqls string) *schema.Table { |
| 162 | t := schema.NewTable(name) |