Help us shape the future of Go! Take the 2026 Go Developer Survey

sql

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package sql is for a sql database model

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*gorm.DB
}

The sql DB

func NewDB

func NewDB(name string) (*DB, error)

NewDB provides a new database connection. If [name].db.address is found in the config then it's used as the address, otherwise we use sqlite.

Jump to

Keyboard shortcuts

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