增加pgx驱动,完善前端的代码,暂定supabase后端数据库

This commit is contained in:
2025-05-21 08:50:34 +08:00
parent 9f2fb09157
commit 66980958f5
13 changed files with 126 additions and 85 deletions

View File

@@ -1,7 +1,10 @@
package db
import (
"github.com/jackc/pgx/v5/pgxpool"
"gorm.io/gorm"
)
var Main *gorm.DB //Main database connection
var PGX *pgxpool.Pool