package
0.0.0-20200507155645-0e2b5c99c75c
Repository: https://github.com/teserakt-io/c2.git
Documentation: pkg.go.dev

# Functions

IsErrRecordNotFound indicate whenever the err is a gorm.RecordNotFound error.
NewDB creates a new database.
NewMockDatabase creates a new mock instance.

# Constants

List of available DB dialects.
List of available DB dialects.
QueryLimit defines the maximum number of records returned.

# Variables

ErrClientNoPrimaryKey is returned when an Client is provided but it doesn't have a primary key set.
ErrClientNotFound is returned when the key cannot be found in the database.
ErrTopicKeyNoPrimaryKey is returned when an TopicKey is provided but it doesn't have a primary key set.
ErrTopicKeyNotFound is returned when the topic cannot be found in the database.
ErrUnsupportedDialect is returned when creating a new database with a Config having an unsupported dialect.

# Structs

Client represents an Identity Key in the database given a unique device ID.
MockDatabase is a mock of Database interface.
MockDatabaseMockRecorder is the mock recorder for MockDatabase.
TopicKey represents.

# Interfaces

Database describes a generic database implementation.