Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseEngine ¶
DatabaseEngine is an interface to a Database engine implementation at the moment we only implemented PostgreSQL because SQLite does not support ALTER TABLE ADD CONSTRAINT and thus penguon does not support generating FKConstraints on SQLite
func NewPostgreSQLEngine ¶
func NewPostgreSQLEngine(url string) (DatabaseEngine, error)
NewPostgreSQLEngine is a helper method to construct a new PostgreSQL engine from a given URL if can return an error that you must handle before trying to use the returned engine if you want to avoid runtime panics
Click to show internal directories.
Click to hide internal directories.