db

package
v0.0.0-...-d21d676 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDB

func CreateDB(dbName string)

CreateDB : creates the db file if it doesn't exist.

func GetDBPath

func GetDBPath(dbName string) string

GetDBPath : Gives the file path of the database file.

func Migrate

func Migrate(db *gorm.DB, models []struct{})

Migrate : Migrates the structs from the array of given structs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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