feat: add a database pool and initialize table

This commit is contained in:
2024-08-20 23:13:27 +09:00
parent 2727a08b0f
commit a5b00f3bb2
5 changed files with 113 additions and 20 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { error } from '@sveltejs/kit';
import type { PageServerLoad } from './$types';
// import index from '$lib/index';
import type { Content } from '$lib/article';
import pool from '$lib/database';
import { pool } from '$lib/server/database';
let data: {
recent: Content[],