gorm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Profile = "gorm"

Variables

View Source
var DatabaseIsNotOpenedError = errors.New("database is not opened")

Functions

This section is empty.

Types

type Config

type Config struct {
	Decrypt    bool   `json:"decrypt" default:"true"`
	DecryptKey string `json:"decrypt_key"`
}

type DataSource

type DataSource interface {
	Open(p *properties) error
	IsOpened() bool
	Close() error
	Repository() gorm.Repository
}

func GetDataSource

func GetDataSource() DataSource

type Repository

type Repository interface {
	gorm.Repository
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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