ql driver for xorm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Lunny Xiao 1300e29a53 rename test function 3 years ago
README.md improved README 4 years ago
ql.go bug fixed 4 years ago
ql_test.go rename test function 3 years ago


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:

  • Non-interger Primary Key & Composite Primary Key
  • Column’s name and Tables’ name could not be ql’s keywords, you can visit github.com/cznic/ql to check out it.

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"

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

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