···11-import { Database as SqliteDb } from "bun:sqlite";
11+import SqliteDb from "better-sqlite3";
22import {
33 Kysely,
44 type Migration,
55 type MigrationProvider,
66 Migrator,
77+ SqliteDialect,
78} from "kysely";
88-import { BunSqliteDialect } from "kysely-bun-sqlite";
991010// Types
1111···79798080export const createDb = (location: string): Database => {
8181 return new Kysely<DatabaseSchema>({
8282- dialect: new BunSqliteDialect({
8282+ dialect: new SqliteDialect({
8383 database: new SqliteDb(location),
8484 }),
8585 });
+1
apps/api/src/index.ts
···2424import googledrive from "./googledrive/app";
2525import { env } from "./lib/env";
2626import { requestCounter, requestDuration } from "./metrics";
2727+import "./profiling";
2728import albumTracks from "./schema/album-tracks";
2829import albums from "./schema/albums";
2930import artistTracks from "./schema/artist-tracks";
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskyApikeyDefs from "./defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The name of the API key. */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskyApikeyDefs from "./defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The ID of the API key to update. */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskyShoutDefs from "../shout/defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The unique identifier of the shout to dislike */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskySongDefs from "../song/defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The unique identifier of the song to dislike */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskyShoutDefs from "../shout/defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The unique identifier of the shout to like */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskySongDefs from "../song/defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The unique identifier of the song to like */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskyScrobbleDefs from "./defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The title of the track being scrobbled */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskyShoutDefs from "./defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The content of the shout */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskyShoutDefs from "./defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The unique identifier of the shout to reply to */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskyShoutDefs from "./defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The unique identifier of the shout to report */
···99import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
1010import type * as AppRockskySongDefs from "./defs";
11111212-export type QueryParams = {};
1212+export type QueryParams = {}
13131414export interface InputSchema {
1515 /** The title of the song */
···88import { CID } from "multiformats/cid";
99import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
10101111-export type QueryParams = {};
1111+export type QueryParams = {}
12121313export type InputSchema = undefined;
1414export type HandlerInput = undefined;
···88import { CID } from "multiformats/cid";
99import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
10101111-export type QueryParams = {};
1111+export type QueryParams = {}
12121313export type InputSchema = undefined;
1414export type HandlerInput = undefined;
···88import { CID } from "multiformats/cid";
99import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
10101111-export type QueryParams = {};
1111+export type QueryParams = {}
12121313export type InputSchema = undefined;
1414export type HandlerInput = undefined;
···88import { CID } from "multiformats/cid";
99import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server";
10101111-export type QueryParams = {};
1111+export type QueryParams = {}
12121313export type InputSchema = undefined;
1414export type HandlerInput = undefined;