mirror of
https://github.com/mattn/go-sqlite3.git
synced 2025-05-24 14:54:48 +00:00
* Renamed SQLiteConn.loc => SQLiteConn.tz * Fix code format * Added Documentation for LIMIT Constants * Updated Crypt Encoders * Changed * Encoders now use CryptEncoder & CryptSaltedEncoder interfaces this allows for custom implementation by users * Added Configuration * Config implements Connector (Golang:1.10) * Driver implements DriverContext (Golang:1.10)
35 lines
644 B
Go
35 lines
644 B
Go
// Copyright (C) 2018 The Go-SQLite3 Authors.
|
|
//
|
|
// Use of this source code is governed by an MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build cgo
|
|
|
|
package sqlite3
|
|
|
|
/*
|
|
#ifndef USE_LIBSQLITE3
|
|
#include <sqlite3-binding.h>
|
|
#else
|
|
#include <sqlite3.h>
|
|
#endif
|
|
*/
|
|
import "C"
|
|
|
|
const (
|
|
// SQLITE_DELETE authorizer action code
|
|
SQLITE_DELETE = C.SQLITE_DELETE
|
|
|
|
// SQLITE_INSERT authorizer action code
|
|
SQLITE_INSERT = C.SQLITE_INSERT
|
|
|
|
// SQLITE_UPDATE authorizer action code
|
|
SQLITE_UPDATE = C.SQLITE_UPDATE
|
|
)
|
|
|
|
const (
|
|
columnDate string = "date"
|
|
columnDatetime string = "datetime"
|
|
columnTimestamp string = "timestamp"
|
|
)
|