factories

package
v0.0.0-...-839bc5d Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.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 RelationshipReaderFactory

func RelationshipReaderFactory(db database.Database, logger logger.Interface) (repo repositories.RelationshipReader)

RelationshipReaderFactory - Return relationship read operations according to given database interface

func RelationshipWriterFactory

func RelationshipWriterFactory(db database.Database, logger logger.Interface) (repo repositories.RelationshipWriter)

RelationshipWriterFactory - Return relationship write operations according to given database interface

func SchemaReaderFactory

func SchemaReaderFactory(db database.Database, logger logger.Interface) (repo repositories.SchemaReader)

SchemaReaderFactory - Return schema read operations according to given database interface

func SchemaWriterFactory

func SchemaWriterFactory(db database.Database, logger logger.Interface) (repo repositories.SchemaWriter)

SchemaWriterFactory - Return schema write operations according to given database interface

func TenantReaderFactory

func TenantReaderFactory(db database.Database, logger logger.Interface) (repo repositories.TenantReader)

TenantReaderFactory - Return tenant read operations according to given database interface

func TenantWriterFactory

func TenantWriterFactory(db database.Database, logger logger.Interface) (repo repositories.TenantWriter)

TenantWriterFactory - Return tenant 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