chore: add interface for request to db for posts

This commit is contained in:
d3m0k1d
2026-02-03 18:27:17 +03:00
parent 5560cf9699
commit 503f18d976
3 changed files with 58 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ import (
_ "modernc.org/sqlite"
)
var db_path = os.Getenv("DB_PATH")
var db_path = os.Getenv("DB_PATH") + "?_journal_mode=WAL&_busy_timeout=5000&_synchronous=NORMAL&_cache_size=2000&_foreign_keys=ON"
func CreateTables() error {
logger := logger.New(false)