Add authentication server, dev CLI, Docker multi-service setup, and cross-platform improvements

This commit is contained in:
Ilya Groshev
2026-04-21 16:49:44 +03:00
parent 43d6527b42
commit a3fbb1aeba
121 changed files with 4523 additions and 2888 deletions
+7
View File
@@ -3,6 +3,7 @@ package database
import (
"database/sql"
"fmt"
"log"
"os"
"path/filepath"
@@ -40,3 +41,9 @@ func Open(path string) (*sql.DB, error) {
return db, nil
}
func Checkpoint(db *sql.DB) {
if _, err := db.Exec("PRAGMA wal_checkpoint(TRUNCATE)"); err != nil {
log.Printf("WAL checkpoint: %v", err)
}
}