mirror of
https://github.com/Blah-IM/Weblah.git
synced 2025-07-11 00:05:33 +00:00
refactor: remove sqlite & drizzle
We will just use idb and localstorage to keep web client simple.
This commit is contained in:
parent
7098580d10
commit
8a91ea13fd
6 changed files with 1 additions and 1193 deletions
|
@ -1,5 +0,0 @@
|
|||
import { SQLocalDrizzle } from 'sqlocal/drizzle';
|
||||
import { drizzle } from 'drizzle-orm/sqlite-proxy';
|
||||
|
||||
const { driver, batchDriver } = new SQLocalDrizzle('database.sqlite3');
|
||||
export const db = drizzle(driver, batchDriver);
|
|
@ -1,6 +0,0 @@
|
|||
import { sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
||||
|
||||
export const configs = sqliteTable('weblah-config', {
|
||||
key: text('key').primaryKey(),
|
||||
value: text('value')
|
||||
});
|
|
@ -1,10 +0,0 @@
|
|||
import { sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
||||
|
||||
export const identities = sqliteTable('weblah-identities', {
|
||||
idKey: text('id_key').primaryKey(),
|
||||
actKeys: text('act_keys').notNull(),
|
||||
profileName: text('profile_name').notNull(),
|
||||
profileBio: text('profile_bio'),
|
||||
preferredChatServerUrls: text('preferred_chat_server_urls').notNull(),
|
||||
idUrls: text('id_urls').notNull()
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue