tidb

package module
v0.0.0-...-0739f37 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: BSD-3-Clause Imports: 7 Imported by: 0

README

tidb driver and dialect for github.com/go-xorm/xorm

Currently, we can support tidb for allmost all the operations.

How to use

Just like other supports of xorm, but you should import the three packages:

import (
    _ "github.com/pingcap/tidb"
    _ "github.com/go-xorm/tidb"
    "github.com/go-xorm/xorm"
)

//The formate of DataSource name is store://uri/dbname
// for goleveldb as store
xorm.NewEngine("tidb", "goleveldb://./tidb/tidb")
// for memory as store
xorm.NewEngine("tidb", "memory://tidb/tidb")
// for boltdb as store
xorm.NewEngine("tidb", "boltdb://./tidb/tidb")

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBType core.DbType = "tidb"
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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