Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

512 B
Raw Blame
package postgres

import (
	"database/sql"

	"github.com/seaweedfs/seaweedfs/weed/util/pgxutil"
)

// OpenPGXDB is a thin alias kept for callers (notably the postgres2 filer
// store) that already depend on this entry point. New code should use
// pgxutil.OpenDB directly.
func OpenPGXDB(sqlUrl, adaptedSqlUrl string, pgbouncerCompatible bool, maxIdle, maxOpen, maxLifetimeSeconds int) (*sql.DB, error) {
	return pgxutil.OpenDB(sqlUrl, adaptedSqlUrl, pgbouncerCompatible, maxIdle, maxOpen, maxLifetimeSeconds)
}