All checks were successful
Deploy production / deploy (push) Successful in 2m37s
- music schema: artists/albums/tracks (+album art), plays with source + dedupe, now_playing, spotify_auth, import_state; plays_deduped view hides Last.fm scrobbles Spotify also has - in-app Spotify poller (60s, leased) started from hooks init; no new role or env needed - /api/spotify/connect + callback (owner only), /trackers/music public stats - scripts: music-poll, music-import-lastfm (resumable), music-import-history - deploy/music-collector: optional host timer with its own role
13 lines
371 B
TypeScript
Executable File
13 lines
371 B
TypeScript
Executable File
import { DB_URL } from '$app/env/private';
|
|
import { relations } from './relations';
|
|
import { drizzle } from 'drizzle-orm/postgres-js';
|
|
import postgres from 'postgres';
|
|
|
|
/** Raw postgres.js client (same pool), for hand-written SQL such as the music stats. */
|
|
export const client = postgres(DB_URL, { prepare: false });
|
|
|
|
export const db = drizzle({
|
|
relations,
|
|
client
|
|
});
|