2018-06-19 18:53:53 +03:00
|
|
|
// 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 (
|
2018-06-21 16:51:19 +03:00
|
|
|
// SQLiteDelete authorizer action code
|
2018-06-19 18:53:53 +03:00
|
|
|
SQLiteDelete = C.SQLITE_DELETE
|
2018-06-21 16:51:19 +03:00
|
|
|
|
|
|
|
// SQLiteInsert authorizer action code
|
2018-06-19 18:53:53 +03:00
|
|
|
SQLiteInsert = C.SQLITE_INSERT
|
2018-06-21 16:51:19 +03:00
|
|
|
|
|
|
|
// SQLiteUpdate authorizer action code
|
2018-06-19 18:53:53 +03:00
|
|
|
SQLiteUpdate = C.SQLITE_UPDATE
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2018-06-21 16:51:19 +03:00
|
|
|
// SQLITE_DELETE authorizer action code
|
|
|
|
//
|
|
|
|
// Deprecated: Use SQLiteDelete instead.
|
2018-06-19 18:53:53 +03:00
|
|
|
SQLITE_DELETE = SQLiteDelete
|
2018-06-21 16:51:19 +03:00
|
|
|
|
|
|
|
// SQLITE_INSERT authorizer action code
|
|
|
|
//
|
|
|
|
// Deprecated: Use SQLiteInsert instead.
|
2018-06-19 18:53:53 +03:00
|
|
|
SQLITE_INSERT = SQLiteInsert
|
2018-06-21 16:51:19 +03:00
|
|
|
|
|
|
|
// SQLITE_UPDATE authorizer action code
|
|
|
|
//
|
|
|
|
// Deprecated: Use SQLiteUpdate instead.
|
2018-06-19 18:53:53 +03:00
|
|
|
SQLITE_UPDATE = SQLiteUpdate
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
columnDate string = "date"
|
|
|
|
columnDatetime string = "datetime"
|
|
|
|
columnTimestamp string = "timestamp"
|
|
|
|
)
|