database

package
v0.0.0-...-9302578 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileLogger

func NewFileLogger(filePath string) logger.Interface

NewFileLogger instantiates a text file logger to register database operations.

func NewStdoutLogger

func NewStdoutLogger() logger.Interface

NewStdoutLogger instantiates a stdout logger to print the output of database operations.

Types

type DB

type DB struct{ *gorm.DB }

func SQLiteOpen

func SQLiteOpen(file string, logr logger.Interface) *DB

SQLiteOpen just opens the sqlite file database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL