[node] Big Ships lib refactoring
This commit is contained in:
parent
a58394230d
commit
234770b611
27 changed files with 500 additions and 589 deletions
|
@ -1,5 +1,5 @@
|
|||
import { DbData, db } from './db.ts';
|
||||
import { System, Waypoint } from '../model/system.ts';
|
||||
import { System, Waypoint } from '../lib/types.ts';
|
||||
|
||||
const addSystemStatement = db.prepare(`INSERT INTO systems(data) VALUES (json(?));`);
|
||||
const getSystemStatement = db.prepare(`SELECT data FROM systems WHERE data->>'symbol' = ?;`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue