sqlite_plugin

package
v0.0.0-...-69b6b67 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstance

func GetInstance() *gorm.DB

func GetInstance_

func GetInstance_(name string) *gorm.DB

func Init

func Init(dbConfig Config, logger log.Logger) error

func Init_

func Init_(name string, dbConfig Config, logger log.Logger) error

Init a new instance.

If only need one instance, use empty name "". Use GetDefaultInstance() to get.
If you need several instance, run Init() with different <name>. Use GetInstance(<name>) to get.

Types

type Config

type Config struct {
	Sqlite_path string
}

Jump to

Keyboard shortcuts

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