orm

package module
v0.0.0-...-efc5801 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	DebugLogging    bool
	SafeModeEnabled bool
	AutoOpen        bool

	Username         string
	Password         string
	Hostname         string
	Port             int
	Database         string
	Dialect          string
	ConnectionString string // override
}

Logging

func DefaultConfig

func DefaultConfig() *Conf

Default config

type Model

type Model struct {
	gorm.Model
}

type Orm

type Orm struct {
	*gorm.DB
}

func Create

func Create(conf *Conf) *Orm

New instance

Jump to

Keyboard shortcuts

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