MCPcopy Create free account
hub / github.com/Permify/permify / New

Function New

pkg/database/postgres/postgres.go:55–57  ·  view source on GitHub ↗

New -

(uri string, opts ...Option)

Source from the content-addressed store, hash-verified

53
54// New -
55func New(uri string, opts ...Option) (*Postgres, error) {
56 return newDB(uri, uri, opts...)
57}
58
59// NewWithSeparateURIs -
60func NewWithSeparateURIs(writerUri, readerUri string, opts ...Option) (*Postgres, error) {

Callers 4

repairDatastoreFunction · 0.92
createTestDatabaseFunction · 0.70
postgres_test.goFile · 0.70

Calls 1

newDBFunction · 0.85

Tested by 2

createTestDatabaseFunction · 0.56