Documentation
¶
Index ¶
- func SetupDB(logLevel types.LogLevelParams) error
- func ShutdownDB() error
- type DB
- func (db *DB) CheckNoteExists(conditions Note) (bool, error)
- func (db *DB) CheckUserExists(conditions User) (bool, error)
- func (db *DB) Close() error
- func (db *DB) CreateNote(note *Note) error
- func (db *DB) CreateUser(user *User) error
- func (db *DB) DeleteNote(conditions Note) error
- func (db *DB) DeleteUser(conditions User) error
- func (db *DB) GetNotes(conditions Note) ([]Note, error)
- func (db *DB) GetUsers(conditions User) ([]User, error)
- func (db *DB) Init() error
- type Note
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupDB ¶
func SetupDB(logLevel types.LogLevelParams) error
func ShutdownDB ¶
func ShutdownDB() error
Types ¶
type DB ¶
type DB struct { DB *gorm.DB LogLevel types.LogLevelParams }
var Database *DB
func InitTesterDB ¶
func (*DB) CreateNote ¶
func (*DB) CreateUser ¶
func (*DB) DeleteNote ¶
func (*DB) DeleteUser ¶
Click to show internal directories.
Click to hide internal directories.