17 lines
258 B
JavaScript
17 lines
258 B
JavaScript
|
"use strict";
|
||
|
|
||
|
import Database from 'batter-sqlite3';
|
||
|
|
||
|
var db_connection = null;
|
||
|
|
||
|
function init(filename, options) {
|
||
|
db_connection = new Database(filename, options);
|
||
|
}
|
||
|
|
||
|
function get_connection() {
|
||
|
return db_connection;
|
||
|
}
|
||
|
|
||
|
|
||
|
export { init, get_connection };
|