File: ql.go

package info (click to toggle)
usql 0.19.19-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,652 kB
  • sloc: sql: 1,115; sh: 643; ansic: 191; makefile: 60
file content (22 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Package ql defines and registers usql's Cznic QL driver.
//
// See: https://gitlab.com/cznic/ql
package ql

import (
	"github.com/xo/usql/drivers"
	"modernc.org/ql" // DRIVER
)

func init() {
	ql.RegisterDriver()
	// ql.RegisterMemDriver()
	drivers.Register("ql", drivers.Driver{
		AllowMultilineComments: true,
		AllowCComments:         true,
		BatchQueryPrefixes: map[string]string{
			"BEGIN TRANSACTION": "COMMIT",
		},
		BatchAsTransaction: true,
	})
}