Skip to content

Commit

Permalink
Bump sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Nov 26, 2024
1 parent bc8341b commit b17e3fd
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 79 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"lib/"
],
"engines": {
"node": ">=18.0.0"
"node": ">=22.0.0"
},
"bin": {
"prolink-connect": "./lib/cli.js"
Expand All @@ -35,14 +35,14 @@
"dependencies": {
"@sentry/node": "^6.4.1",
"@sentry/tracing": "^6.4.1",
"@types/better-sqlite3": "^7.6.2",
"@types/better-sqlite3": "^7.6.12",
"@types/lodash": "^4.14.186",
"@types/node": "*",
"@types/promise-retry": "^1.1.3",
"@types/promise-timeout": "^1.3.0",
"@types/signale": "^1.4.4",
"async-mutex": "^0.3.0",
"better-sqlite3": "^7.6.2",
"better-sqlite3": "^11.5.0",
"ip-address": "^7.0.1",
"js-xdr": "^1.3.0",
"kaitai-struct": "^0.9.0-SNAPSHOT.1",
Expand Down
8 changes: 4 additions & 4 deletions src/localdb/orm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class MetadataORM {
*/
findTrack(id: number): Track {
const row: Record<string, any> = this.#conn
.prepare(`select * from ${Table.Track} where id = ?`)
.prepare<any, any>(`select * from ${Table.Track} where id = ?`)
.get(id);

// Map row columns to camel case compatibility
Expand Down Expand Up @@ -124,7 +124,7 @@ export class MetadataORM {
}

const relationItem: Record<string, any> = this.#conn
.prepare(`select * from ${table} where id = ?`)
.prepare<any, any>(`select * from ${table} where id = ?`)
.get(fk);

track[relation] = relationItem;
Expand All @@ -147,7 +147,7 @@ export class MetadataORM {

// Lookup playlists / folders for this playlist ID
const playlistRows: Array<Record<string, any>> = this.#conn
.prepare(`select * from ${Table.Playlist} where ${parentCondition}`)
.prepare<any, any>(`select * from ${Table.Playlist} where ${parentCondition}`)
.all(playlistId);

const [folders, playlists] = partition(
Expand All @@ -156,7 +156,7 @@ export class MetadataORM {
);

const entryRows: Array<Record<string, any>> = this.#conn
.prepare(`select * from ${Table.PlaylistEntry} where playlist_id = ?`)
.prepare<any, any>(`select * from ${Table.PlaylistEntry} where playlist_id = ?`)
.all(playlistId);

const trackEntries = entryRows.map(
Expand Down
Loading

0 comments on commit b17e3fd

Please sign in to comment.