-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsqlite3_abi.nim
23 lines (20 loc) · 909 Bytes
/
sqlite3_abi.nim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## This file contains additional definitions that nimterop does not generate
## code for
import sqlite3_abi/sqlite3_gen
export sqlite3_gen
# /*
# ** 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)
const SQLITE_TRANSIENT* = cast[sqlite3_destructor_type](-1)