db

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package db provides the database connection and migration functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB) error

Migrate runs the auto-migration for the database

func New

func New(filename string) (*gorm.DB, error)

New creates a new database connection

func NewMemory

func NewMemory() (*gorm.DB, error)

NewMemory creates a new in-memory database connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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