package
0.0.0-20200802004238-a7413d3a5c41
Repository: https://github.com/dophin2009/nao.git
Documentation: pkg.go.dev
# Functions
CheckService returns an error if the given service or its DB are nil.
ConnectBoltDatabase connects to the database file at the given path and returns a new BoltDatabase pointer.
# Structs
BoltDatabase implements Database for boltDB.
BoltDatabaseConfig defines a set of options to be passed when opening a boltDB instance.
BoltTx implements Transaction for boltDB.
DatabaseService provides.
ModelMetadata contains information about.
PersistHooks provides hook functions to be called before and after service operations.
# Interfaces
DatabaseDriver defines generic CRUD logic for a database backend.
Model encompasses all data models.
Service provides various functions to operate on Models.
Tx defines a wrapper for database transactions objects.
# Type aliases
PersistHookFunc is a callback used as a hook function.