2020-02-17 14:38:49 +00:00
|
|
|
## This file contains additional definitions that nimterop does not generate
|
|
|
|
## code for
|
2019-04-10 17:58:14 +00:00
|
|
|
|
2022-12-19 12:15:06 +00:00
|
|
|
import sqlite3_abi/sqlite3_gen
|
2020-02-17 14:38:49 +00:00
|
|
|
export sqlite3_gen
|
2020-02-17 14:55:15 +00:00
|
|
|
|
2022-05-30 09:38:05 +00:00
|
|
|
|
2022-06-21 07:38:00 +00:00
|
|
|
# /*
|
|
|
|
# ** CAPI3REF: Constants Defining Special Destructor Behavior
|
|
|
|
# **
|
|
|
|
# ** These are special values for the destructor that is passed in as the
|
|
|
|
# ** final argument to routines like [sqlite3_result_blob()]. ^If the destructor
|
|
|
|
# ** argument is SQLITE_STATIC, it means that the content pointer is constant
|
|
|
|
# ** and will never change. It does not need to be destroyed. ^The
|
|
|
|
# ** SQLITE_TRANSIENT value means that the content will likely change in
|
|
|
|
# ** the near future and that SQLite should make its own private copy of
|
|
|
|
# ** the content before returning.
|
|
|
|
# **
|
|
|
|
# ** The typedef is necessary to work around problems in certain
|
|
|
|
# ** C++ compilers.
|
|
|
|
# */
|
|
|
|
const SQLITE_STATIC* = cast[sqlite3_destructor_type](0)
|
2022-05-30 09:38:05 +00:00
|
|
|
const SQLITE_TRANSIENT* = cast[sqlite3_destructor_type](-1)
|