database

package
v0.0.0-...-05fee8b Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Categories []string = []string{
	"shopping",
	"food",
	"subscription",
	"airtime",
	"groceries",
	"leisure",
	"electronics",
	"utilities",
	"clothing",
	"health",
	"fruit",
	"others",
}

Functions

This section is empty.

Types

type Database

type Database struct{}

func NewDatabase

func NewDatabase() *Database

func (*Database) InitDatabase

func (d *Database) InitDatabase() *gorm.DB

func (*Database) RunMigrations

func (d *Database) RunMigrations(db *gorm.DB)

func (*Database) RunSeeds

func (d *Database) RunSeeds(db *gorm.DB)

Jump to

Keyboard shortcuts

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