gorm

package
v0.0.0-...-58dc058 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dialect  ConfigDialect
	Server   string
	Port     int
	User     string
	Database string
	Password string
}

Config 数据库配置

type ConfigDialect

type ConfigDialect string

ConfigDialect db driver

const ConfigDialectPostgre ConfigDialect = "postgres"

ConfigDialectPostgre postgre

const ConfigDialectSqliteV3 ConfigDialect = `sqlite3`

ConfigDialectSqliteV3 sqlite3

func (ConfigDialect) String

func (c ConfigDialect) String() string

String ConfigDialect string

type Conn

type Conn struct {
	*gorm.DB
}

Conn conn

func Build

func Build(config Config) Conn

Build build

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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