Storage represents a underlying storage implementation based on sqlite3.
| 114 | |
| 115 | // Storage represents a underlying storage implementation based on sqlite3. |
| 116 | type Storage struct { |
| 117 | sync.Mutex |
| 118 | dsn string |
| 119 | db *sql.DB |
| 120 | tx *sql.Tx // Current tx |
| 121 | id TxID |
| 122 | queries []Query |
| 123 | } |
| 124 | |
| 125 | // New returns a new storage connected by dsn. |
| 126 | func New(dsn string) (st *Storage, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected