mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-28 10:44:27 +01:00
Remove unused builder.ts
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
import { DenoSqliteDialect, Kysely, Sqlite } from '@/deps.ts';
|
||||
|
||||
interface Tables {
|
||||
events: EventsTable;
|
||||
tags: TagsTable;
|
||||
users: UsersTable;
|
||||
}
|
||||
|
||||
interface EventsTable {
|
||||
id: string;
|
||||
kind: number;
|
||||
pubkey: string;
|
||||
content: string;
|
||||
created_at: number;
|
||||
tags: string;
|
||||
sig: string;
|
||||
}
|
||||
|
||||
interface TagsTable {
|
||||
tag: string;
|
||||
value_1: string | null;
|
||||
value_2: string | null;
|
||||
value_3: string | null;
|
||||
event_id: string;
|
||||
}
|
||||
|
||||
interface UsersTable {
|
||||
pubkey: string;
|
||||
username: string;
|
||||
inserted_at: Date;
|
||||
}
|
||||
|
||||
const builder = new Kysely<Tables>({
|
||||
dialect: new DenoSqliteDialect({
|
||||
database: new Sqlite('data/db.sqlite3'),
|
||||
}),
|
||||
});
|
||||
|
||||
export { builder };
|
||||
Reference in New Issue
Block a user