package
0.11.7
Repository: https://github.com/metal-stack/masterdata-api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Initdb reads all yaml files in given directory and apply their content as initial datasets.
IsErrorCode a specific postgres specific error as defined by https://www.postgresql.org/docs/12/errcodes-appendix.html.
MigrateDB applies necessary DB Migrations.
New creates a new Storage which uses the given database abstraction.
NewDataCorruptionError is called to create an DataCorruptionError error.
NewDuplicateKeyError is called to create an DuplicateKeyError error.
NewNotFoundError is called to create an NewNotFoundError error.
NewOptimisticLockError is called to create an OptimisticLockError error.
NewPostgresStorage creates a new Storage which uses postgres.
No description provided by the author

# Constants

'unique_violation'.

# Variables

exchangeable for testing.

# Structs

DataCorruptionError indicates that the data is in an unexpected, illegal state.
DuplicateKeyError indicates that an entity with the given id already exists.
MetaMeta is a container for the meta property inside a entity.
NotFoundError indicates that the entity that was expected to be affected by the operation was not found.
OptimisticLockError indicates that the operation could not be executed because the dataset to update has changed in the meantime.

# Interfaces

Entity defines a database entity which is stored in jsonb format and with version information.
Storage is a interface to store objects.

# Type aliases

No description provided by the author