datebase

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	GetStructFields(tableName string) ([]*model.Field, error)
}

func OpenGorm

func OpenGorm(driverName, dsn string) (Database, error)

type MysqlGorm

type MysqlGorm struct {
	// contains filtered or unexported fields
}

func (MysqlGorm) GetStructFields

func (g MysqlGorm) GetStructFields(tableName string) (result []*model.Field, err error)

type PostgresGorm

type PostgresGorm struct {
	// contains filtered or unexported fields
}

func (PostgresGorm) GetStructFields

func (p PostgresGorm) GetStructFields(tableName string) (result []*model.Field, err error)

type X

type X struct {
	// contains filtered or unexported fields
}

func (X) GetTbColumns

func (x X) GetTbColumns(tableName string) (*column.MysqlColumn, error)

func (X) Schema

func (x X) Schema(modelName string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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