1
0
Fork 0

[node] Big Ships lib refactoring

This commit is contained in:
Julien Dessaux 2024-04-05 00:42:30 +02:00
parent a58394230d
commit 234770b611
Signed by: adyxax
GPG key ID: F92E51B86E07177E
27 changed files with 500 additions and 589 deletions

View file

@ -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' = ?;`);