mirror of
https://github.com/hanzoai/base.git
synced 2026-10-21 03:41:50 +00:00
Drop-in replacement — same API, same package name (dbx). 75 Go files updated. Zero pocketbase references in imports.
15 lines
329 B
Go
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)")
|
|
}
|