mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-09 00:10:10 +01:00
88cdd8c872
* Implement use of native embedder (all-Mini-L6-v2) stop showing prisma queries during dev * Add native embedder as an available embedder selection * wrap model loader in try/catch * print progress on download * Update to progress output for embedder * move embedder selection options to component * forgot import * add Data privacy alert updates for local embedder
14 lines
389 B
JavaScript
14 lines
389 B
JavaScript
const { PrismaClient } = require("@prisma/client");
|
|
|
|
// npx prisma introspect
|
|
// npx prisma generate
|
|
// npx prisma migrate dev --name init -> ensures that db is in sync with schema
|
|
// npx prisma migrate reset -> resets the db
|
|
|
|
const logLevels = ["error", "info", "warn"]; // add "query" to debug query logs
|
|
const prisma = new PrismaClient({
|
|
log: logLevels,
|
|
});
|
|
|
|
module.exports = prisma;
|