factories

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseFactory

func DatabaseFactory(conf config.Database) (db database.Database, err error)

DatabaseFactory - Create database according to given configuration

func MigrationFactory

func MigrationFactory(engine database.Engine) []string

MigrationFactory - Get migrations according to given engine

func RelationshipReaderFactory

func RelationshipReaderFactory(db database.Database) (repo repositories.RelationshipReader)

RelationshipReaderFactory - Return relationship read operations according to given database interface

func RelationshipWriterFactory

func RelationshipWriterFactory(db database.Database) (repo repositories.RelationshipWriter)

RelationshipWriterFactory - Return relationship write operations according to given database interface

func SchemaReaderFactory

func SchemaReaderFactory(db database.Database) (repo repositories.SchemaReader)

SchemaReaderFactory - Return schema read operations according to given database interface

func SchemaWriterFactory

func SchemaWriterFactory(db database.Database) (repo repositories.SchemaWriter)

SchemaWriterFactory - Return schema write operations according to given database interface

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL