Documentation
¶
Overview ¶
Package postgres provides a PostgreSQL-backed storage driver using ent ORM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver implements storage.Driver using PostgreSQL via the ent driver.
func NewDriver ¶
NewDriver creates a new PostgreSQL-backed storer. The connStr is a PostgreSQL connection string, e.g. "host=localhost port=5432 user=tapes password=tapes dbname=tapes sslmode=disable" or a connection URI like "postgres://tapes:tapes@localhost:5432/tapes?sslmode=disable".
NewDriver does not run schema migrations. Call Migrate() after construction to apply any pending migrations.
Click to show internal directories.
Click to hide internal directories.