()
| 20 | export let connection : Connection | undefined; |
| 21 | |
| 22 | export const connect = async (): Promise<Connection | undefined> => { |
| 23 | try { |
| 24 | const conn = await createConnection(options); |
| 25 | connection = conn; |
| 26 | console.log(`Database connection success. Connection name: '${conn.name}' Database: '${conn.options.database}'`); |
| 27 | } catch (err) { |
| 28 | console.log(err); |
| 29 | } |
| 30 | return undefined; |
| 31 | }; |
| 32 | |
| 33 | export const PrepareDB = () => new sqlite3.Database(':memory:'); |
no outgoing calls
no test coverage detected