sync: 0.7.3 from main (15b0dbdde03c6b89733ca07d36eefa25fd301107)

This commit is contained in:
github-actions[bot] committed 2026-11-12 14:58:59 +00:00
1 parent 9337afc47e
commit 80d7c72c07
12 files changed
+484 -315

No files matched your search

+3
View File
@@ -10,6 +10,9 @@ import (
"time"
"github.com/gomessguii/logger"
// The binary's only registration of the "postgres" driver. Without it the
// build still passes and sql.Open("postgres") fails at boot.
_ "github.com/lib/pq"
"gorm.io/driver/postgres"
"gorm.io/gorm"
+14
View File
@@ -0,0 +1,14 @@
package config
import (
"database/sql"
"slices"
"testing"
)
// The only guard for the lib/pq import: build and vet pass without it.
func TestPostgresDriverRegistered(t *testing.T) {
if !slices.Contains(sql.Drivers(), "postgres") {
t.Fatalf("driver \"postgres\" not registered; sql.Drivers() = %v", sql.Drivers())
}
}