| 33 | } |
| 34 | |
| 35 | interface Db { |
| 36 | readonly begin: Statement; |
| 37 | readonly rollback: Statement; |
| 38 | readonly commit: Statement; |
| 39 | readonly selectMerkleTree: Statement; |
| 40 | readonly insertOrIgnoreIntoMessage: Statement; |
| 41 | readonly insertOrReplaceIntoMerkleTree: Statement; |
| 42 | readonly selectMessages: Statement; |
| 43 | } |
| 44 | |
| 45 | const createDb = (fileName: string): Db => |
| 46 | pipe(path.join(process.cwd(), "/", fileName), sqlite3, (sqlite) => { |
nothing calls this directly
no outgoing calls
no test coverage detected