gormdb

package
v0.0.0-...-8f78a2b Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(filePath string, log logger.Logger) (*DB, error)

func (*DB) GetAllUsers

func (db *DB) GetAllUsers() []dto.APIUser

get all users

func (*DB) GetUserCount

func (db *DB) GetUserCount() int64

func (*DB) UpsertUser

func (db *DB) UpsertUser(userID int64, user dto.DBUser)

Jump to

Keyboard shortcuts

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