dbdriver

package
v0.0.0-...-df70bd3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2016 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DB_SQLITE   = 1
	DB_POSTGRES = 2
)

Variables

View Source
var Sqltype int = 1 //default is Postgres

Functions

func CheckType

func CheckType(GoType *reflect.Type, GoName string, RealType string) (string, bool)

* 确认tag的dbfieldType是否正确

func JSONF

func JSONF(name string) string

func JSONP

func JSONP(name, field string) string

func JsonQuerySqlite3

func JsonQuerySqlite3(name string) string

func PostpresConnection

func PostpresConnection(url string) (*sql.DB, error)

func SqliteConnection

func SqliteConnection(url string) (*sql.DB, error)

Types

type JsonHelper

type JsonHelper map[string]interface{}

Jump to

Keyboard shortcuts

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