Documentation
¶
Overview ¶
Package postgres wraps postgres (pq) driver as an adapter for rel.
Usage:
// open postgres connection.
adapter, err := postgres.Open("postgres://postgres@localhost/rel_test?sslmode=disable")
if err != nil {
panic(err)
}
defer adapter.Close()
// initialize rel's repo.
repo := rel.New(adapter)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
Adapter definition for postgrees database.
Click to show internal directories.
Click to hide internal directories.