Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

go-xorm/ql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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

** experiment support **

STATUS: build pass but some tests failed.

Currently, we can support ql for some operations.

The below operation cannot be supported because of ql's limitation:

How to use

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

Since github.com/cznic/ql# has not been resolved, we just use github.com/lunny/ql instead.

import (
	_ "github.com/lunny/ql/driver"
	_ "github.com/go-xorm/ql"
	"github.com/go-xorm/xorm"
)

// for open a file
xorm.NewEngine("ql", "./ql.db")

// for open a memory file
xorm.NewEngine("ql-mem", "./ql.db")