Close closes the SQLite database connection
()
| 149 | |
| 150 | // Close closes the SQLite database connection |
| 151 | func Close() error { |
| 152 | if sqlDB != nil { |
| 153 | return sqlDB.Close() |
| 154 | } |
| 155 | return nil |
| 156 | } |
| 157 | |
| 158 | // ReadModifyWrite executes a function within a read-write transaction. |
| 159 | // If the function returns an error, the transaction is rolled back. |