Files
base/core/db_connect_postgres_nopg.go
zeekay d02a70442d migrate: pocketbase/dbx → hanzoai/dbx v1.12.0
Drop-in replacement — same API, same package name (dbx).
75 Go files updated. Zero pocketbase references in imports.
2026-03-02 13:54:55 -07:00

15 lines
329 B
Go

//go:build no_pg_driver
package core
import (
"errors"
"github.com/hanzoai/dbx"
)
// PostgresDBConnect is a stub when the pg driver is excluded via the no_pg_driver build tag.
func PostgresDBConnect(_ string) (*dbx.DB, error) {
return nil, errors.New("PostgreSQL support is not available (built with no_pg_driver tag)")
}