change sqlite backend; upgrade electron; fix ipc file cannot listen in macOS

This commit is contained in:
geekgeekrun
2026-01-21 02:56:42 +08:00
parent c23d590052
commit afe8a820c1
7 changed files with 494 additions and 587 deletions

View File

@@ -21,7 +21,6 @@ import { ChatMessageRecord } from './entity/ChatMessageRecord'
import { LlmModelUsageRecord } from './entity/LlmModelUsageRecord'
import { JobHireStatusRecord } from './entity/JobHireStatusRecord'
import sqlite3 from 'sqlite3';
import {
saveChatStartupRecord,
saveJobInfoFromRecommendPage,
@@ -45,12 +44,11 @@ import * as typeorm from 'typeorm'
export function initDb(dbFilePath) {
const { DataSource } = typeorm
const appDataSource = new DataSource({
type: "sqlite",
type: "better-sqlite3",
synchronize: false,
logging: true,
logger: "simple-console",
database: dbFilePath,
driver: sqlite3, // The important line
entities: [
ChatStartupLog,
BossInfo,