Artifact
fb64073b73af16ac1080364a88e99b28f4e3e1ff:
- File
src/headers/spatialite/sqlite.h
— part of check-in
[eb10bf0c46]
at
2023-08-04 07:47:44
on branch trunk
— releasing 5.1.0 stable version
(user:
sandro
size: 2488)
0000: 2f 2a 20 0a 20 73 71 6c 69 74 65 2e 68 20 2d 2d /* . sqlite.h --
0010: 20 73 75 70 70 6f 72 74 69 6e 67 20 53 51 4c 69 supporting SQLi
0020: 74 65 20 68 65 61 64 65 72 73 20 69 6e 20 61 20 te headers in a
0030: 66 6c 65 78 69 62 6c 65 20 77 61 79 0a 20 20 0a flexible way. .
0040: 20 76 65 72 73 69 6f 6e 20 35 2e 31 2e 30 2c 20 version 5.1.0,
0050: 32 30 32 33 20 41 75 67 75 73 74 20 34 0a 0a 20 2023 August 4..
0060: 41 75 74 68 6f 72 3a 20 53 61 6e 64 72 6f 20 46 Author: Sandro F
0070: 75 72 69 65 72 69 20 61 2e 66 75 72 69 65 72 69 urieri a.furieri
0080: 40 6c 71 74 2e 69 74 0a 0a 20 2d 2d 2d 2d 2d 2d @lqt.it.. ------
0090: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
00a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
00b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
00c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
00d0: 2d 2d 2d 2d 2d 2d 2d 2d 0a 20 0a 20 56 65 72 73 --------. . Vers
00e0: 69 6f 6e 3a 20 4d 50 4c 20 31 2e 31 2f 47 50 4c ion: MPL 1.1/GPL
00f0: 20 32 2e 30 2f 4c 47 50 4c 20 32 2e 31 0a 20 0a 2.0/LGPL 2.1. .
0100: 20 54 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 The contents of
0110: 20 74 68 69 73 20 66 69 6c 65 20 61 72 65 20 73 this file are s
0120: 75 62 6a 65 63 74 20 74 6f 20 74 68 65 20 4d 6f ubject to the Mo
0130: 7a 69 6c 6c 61 20 50 75 62 6c 69 63 20 4c 69 63 zilla Public Lic
0140: 65 6e 73 65 20 56 65 72 73 69 6f 6e 0a 20 31 2e ense Version. 1.
0150: 31 20 28 74 68 65 20 22 4c 69 63 65 6e 73 65 22 1 (the "License"
0160: 29 3b 20 79 6f 75 20 6d 61 79 20 6e 6f 74 20 75 ); you may not u
0170: 73 65 20 74 68 69 73 20 66 69 6c 65 20 65 78 63 se this file exc
0180: 65 70 74 20 69 6e 20 63 6f 6d 70 6c 69 61 6e 63 ept in complianc
0190: 65 20 77 69 74 68 0a 20 74 68 65 20 4c 69 63 65 e with. the Lice
01a0: 6e 73 65 2e 20 59 6f 75 20 6d 61 79 20 6f 62 74 nse. You may obt
01b0: 61 69 6e 20 61 20 63 6f 70 79 20 6f 66 20 74 68 ain a copy of th
01c0: 65 20 4c 69 63 65 6e 73 65 20 61 74 0a 20 68 74 e License at. ht
01d0: 74 70 3a 2f 2f 77 77 77 2e 6d 6f 7a 69 6c 6c 61 tp://www.mozilla
01e0: 2e 6f 72 67 2f 4d 50 4c 2f 0a 20 0a 53 6f 66 74 .org/MPL/. .Soft
01f0: 77 61 72 65 20 64 69 73 74 72 69 62 75 74 65 64 ware distributed
0200: 20 75 6e 64 65 72 20 74 68 65 20 4c 69 63 65 6e under the Licen
0210: 73 65 20 69 73 20 64 69 73 74 72 69 62 75 74 65 se is distribute
0220: 64 20 6f 6e 20 61 6e 20 22 41 53 20 49 53 22 20 d on an "AS IS"
0230: 62 61 73 69 73 2c 0a 57 49 54 48 4f 55 54 20 57 basis,.WITHOUT W
0240: 41 52 52 41 4e 54 59 20 4f 46 20 41 4e 59 20 4b ARRANTY OF ANY K
0250: 49 4e 44 2c 20 65 69 74 68 65 72 20 65 78 70 72 IND, either expr
0260: 65 73 73 20 6f 72 20 69 6d 70 6c 69 65 64 2e 20 ess or implied.
0270: 53 65 65 20 74 68 65 20 4c 69 63 65 6e 73 65 0a See the License.
0280: 66 6f 72 20 74 68 65 20 73 70 65 63 69 66 69 63 for the specific
0290: 20 6c 61 6e 67 75 61 67 65 20 67 6f 76 65 72 6e language govern
02a0: 69 6e 67 20 72 69 67 68 74 73 20 61 6e 64 20 6c ing rights and l
02b0: 69 6d 69 74 61 74 69 6f 6e 73 20 75 6e 64 65 72 imitations under
02c0: 20 74 68 65 0a 4c 69 63 65 6e 73 65 2e 0a 0a 54 the.License...T
02d0: 68 65 20 4f 72 69 67 69 6e 61 6c 20 43 6f 64 65 he Original Code
02e0: 20 69 73 20 74 68 65 20 53 70 61 74 69 61 4c 69 is the SpatiaLi
02f0: 74 65 20 6c 69 62 72 61 72 79 0a 0a 54 68 65 20 te library..The
0300: 49 6e 69 74 69 61 6c 20 44 65 76 65 6c 6f 70 65 Initial Develope
0310: 72 20 6f 66 20 74 68 65 20 4f 72 69 67 69 6e 61 r of the Origina
0320: 6c 20 43 6f 64 65 20 69 73 20 41 6c 65 73 73 61 l Code is Alessa
0330: 6e 64 72 6f 20 46 75 72 69 65 72 69 0a 20 0a 50 ndro Furieri. .P
0340: 6f 72 74 69 6f 6e 73 20 63 72 65 61 74 65 64 20 ortions created
0350: 62 79 20 74 68 65 20 49 6e 69 74 69 61 6c 20 44 by the Initial D
0360: 65 76 65 6c 6f 70 65 72 20 61 72 65 20 43 6f 70 eveloper are Cop
0370: 79 72 69 67 68 74 20 28 43 29 20 32 30 31 33 2d yright (C) 2013-
0380: 32 30 32 33 0a 74 68 65 20 49 6e 69 74 69 61 6c 2023.the Initial
0390: 20 44 65 76 65 6c 6f 70 65 72 2e 20 41 6c 6c 20 Developer. All
03a0: 52 69 67 68 74 73 20 52 65 73 65 72 76 65 64 2e Rights Reserved.
03b0: 0a 0a 43 6f 6e 74 72 69 62 75 74 6f 72 28 73 29 ..Contributor(s)
03c0: 3a 0a 50 65 70 69 6a 6e 20 56 61 6e 20 45 65 63 :.Pepijn Van Eec
03d0: 6b 68 6f 75 64 74 20 3c 70 65 70 69 6a 6e 76 61 khoudt <pepijnva
03e0: 6e 65 65 63 6b 68 6f 75 64 74 40 6c 75 63 69 61 neeckhoudt@lucia
03f0: 64 2e 63 6f 6d 3e 0a 0a 41 6c 74 65 72 6e 61 74 d.com>..Alternat
0400: 69 76 65 6c 79 2c 20 74 68 65 20 63 6f 6e 74 65 ively, the conte
0410: 6e 74 73 20 6f 66 20 74 68 69 73 20 66 69 6c 65 nts of this file
0420: 20 6d 61 79 20 62 65 20 75 73 65 64 20 75 6e 64 may be used und
0430: 65 72 20 74 68 65 20 74 65 72 6d 73 20 6f 66 0a er the terms of.
0440: 65 69 74 68 65 72 20 74 68 65 20 47 4e 55 20 47 either the GNU G
0450: 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 eneral Public Li
0460: 63 65 6e 73 65 20 56 65 72 73 69 6f 6e 20 32 20 cense Version 2
0470: 6f 72 20 6c 61 74 65 72 20 28 74 68 65 20 22 47 or later (the "G
0480: 50 4c 22 29 2c 20 6f 72 0a 74 68 65 20 47 4e 55 PL"), or.the GNU
0490: 20 4c 65 73 73 65 72 20 47 65 6e 65 72 61 6c 20 Lesser General
04a0: 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20 56 Public License V
04b0: 65 72 73 69 6f 6e 20 32 2e 31 20 6f 72 20 6c 61 ersion 2.1 or la
04c0: 74 65 72 20 28 74 68 65 20 22 4c 47 50 4c 22 29 ter (the "LGPL")
04d0: 2c 0a 69 6e 20 77 68 69 63 68 20 63 61 73 65 20 ,.in which case
04e0: 74 68 65 20 70 72 6f 76 69 73 69 6f 6e 73 20 6f the provisions o
04f0: 66 20 74 68 65 20 47 50 4c 20 6f 72 20 74 68 65 f the GPL or the
0500: 20 4c 47 50 4c 20 61 72 65 20 61 70 70 6c 69 63 LGPL are applic
0510: 61 62 6c 65 20 69 6e 73 74 65 61 64 0a 6f 66 20 able instead.of
0520: 74 68 6f 73 65 20 61 62 6f 76 65 2e 20 49 66 20 those above. If
0530: 79 6f 75 20 77 69 73 68 20 74 6f 20 61 6c 6c 6f you wish to allo
0540: 77 20 75 73 65 20 6f 66 20 79 6f 75 72 20 76 65 w use of your ve
0550: 72 73 69 6f 6e 20 6f 66 20 74 68 69 73 20 66 69 rsion of this fi
0560: 6c 65 20 6f 6e 6c 79 0a 75 6e 64 65 72 20 74 68 le only.under th
0570: 65 20 74 65 72 6d 73 20 6f 66 20 65 69 74 68 65 e terms of eithe
0580: 72 20 74 68 65 20 47 50 4c 20 6f 72 20 74 68 65 r the GPL or the
0590: 20 4c 47 50 4c 2c 20 61 6e 64 20 6e 6f 74 20 74 LGPL, and not t
05a0: 6f 20 61 6c 6c 6f 77 20 6f 74 68 65 72 73 20 74 o allow others t
05b0: 6f 0a 75 73 65 20 79 6f 75 72 20 76 65 72 73 69 o.use your versi
05c0: 6f 6e 20 6f 66 20 74 68 69 73 20 66 69 6c 65 20 on of this file
05d0: 75 6e 64 65 72 20 74 68 65 20 74 65 72 6d 73 20 under the terms
05e0: 6f 66 20 74 68 65 20 4d 50 4c 2c 20 69 6e 64 69 of the MPL, indi
05f0: 63 61 74 65 20 79 6f 75 72 0a 64 65 63 69 73 69 cate your.decisi
0600: 6f 6e 20 62 79 20 64 65 6c 65 74 69 6e 67 20 74 on by deleting t
0610: 68 65 20 70 72 6f 76 69 73 69 6f 6e 73 20 61 62 he provisions ab
0620: 6f 76 65 20 61 6e 64 20 72 65 70 6c 61 63 65 20 ove and replace
0630: 74 68 65 6d 20 77 69 74 68 20 74 68 65 20 6e 6f them with the no
0640: 74 69 63 65 0a 61 6e 64 20 6f 74 68 65 72 20 70 tice.and other p
0650: 72 6f 76 69 73 69 6f 6e 73 20 72 65 71 75 69 72 rovisions requir
0660: 65 64 20 62 79 20 74 68 65 20 47 50 4c 20 6f 72 ed by the GPL or
0670: 20 74 68 65 20 4c 47 50 4c 2e 20 49 66 20 79 6f the LGPL. If yo
0680: 75 20 64 6f 20 6e 6f 74 20 64 65 6c 65 74 65 0a u do not delete.
0690: 74 68 65 20 70 72 6f 76 69 73 69 6f 6e 73 20 61 the provisions a
06a0: 62 6f 76 65 2c 20 61 20 72 65 63 69 70 69 65 6e bove, a recipien
06b0: 74 20 6d 61 79 20 75 73 65 20 79 6f 75 72 20 76 t may use your v
06c0: 65 72 73 69 6f 6e 20 6f 66 20 74 68 69 73 20 66 ersion of this f
06d0: 69 6c 65 20 75 6e 64 65 72 0a 74 68 65 20 74 65 ile under.the te
06e0: 72 6d 73 20 6f 66 20 61 6e 79 20 6f 6e 65 20 6f rms of any one o
06f0: 66 20 74 68 65 20 4d 50 4c 2c 20 74 68 65 20 47 f the MPL, the G
0700: 50 4c 20 6f 72 20 74 68 65 20 4c 47 50 4c 2e 0a PL or the LGPL..
0710: 20 0a 2a 2f 0a 0a 23 69 66 6e 64 65 66 20 5f 53 .*/..#ifndef _S
0720: 50 41 54 49 41 4c 49 54 45 5f 53 51 4c 49 54 45 PATIALITE_SQLITE
0730: 5f 48 0a 23 64 65 66 69 6e 65 20 5f 53 50 41 54 _H.#define _SPAT
0740: 49 41 4c 49 54 45 5f 53 51 4c 49 54 45 5f 48 0a IALITE_SQLITE_H.
0750: 0a 23 69 66 64 65 66 20 4c 4f 41 44 41 42 4c 45 .#ifdef LOADABLE
0760: 5f 45 58 54 45 4e 53 49 4f 4e 09 2f 2a 20 6c 6f _EXTENSION./* lo
0770: 61 64 61 62 6c 65 2d 65 78 74 65 6e 73 69 6f 6e adable-extension
0780: 20 6f 6e 6c 79 20 2a 2f 0a 23 69 66 64 65 66 20 only */.#ifdef
0790: 53 50 4c 5f 41 4d 41 4c 47 41 4d 41 54 49 4f 4e SPL_AMALGAMATION
07a0: 09 09 2f 2a 20 73 70 61 74 69 61 6c 69 74 65 2d ../* spatialite-
07b0: 61 6d 61 6c 67 61 6d 61 74 69 6f 6e 20 2a 2f 0a amalgamation */.
07c0: 23 69 6e 63 6c 75 64 65 20 3c 73 70 61 74 69 61 #include <spatia
07d0: 6c 69 74 65 2f 73 71 6c 69 74 65 33 65 78 74 2e lite/sqlite3ext.
07e0: 68 3e 0a 23 65 6c 73 65 0a 23 69 6e 63 6c 75 64 h>.#else.#includ
07f0: 65 20 3c 73 71 6c 69 74 65 33 65 78 74 2e 68 3e e <sqlite3ext.h>
0800: 0a 23 65 6e 64 69 66 0a 2f 2a 20 57 65 20 63 61 .#endif./* We ca
0810: 6e 27 74 20 75 73 65 20 53 51 4c 49 54 45 5f 45 n't use SQLITE_E
0820: 58 54 45 4e 53 49 4f 4e 5f 49 4e 49 54 31 20 61 XTENSION_INIT1 a
0830: 73 20 74 68 69 73 20 69 73 20 61 6e 20 69 6e 74 s this is an int
0840: 69 61 6c 69 7a 65 72 20 69 6e 20 72 65 63 65 6e ializer in recen
0850: 74 20 76 65 72 73 69 6f 6e 20 6f 66 20 73 71 6c t version of sql
0860: 69 74 65 20 2a 2f 0a 65 78 74 65 72 6e 20 63 6f ite */.extern co
0870: 6e 73 74 20 73 71 6c 69 74 65 33 5f 61 70 69 5f nst sqlite3_api_
0880: 72 6f 75 74 69 6e 65 73 20 2a 73 71 6c 69 74 65 routines *sqlite
0890: 33 5f 61 70 69 3b 0a 23 65 6c 73 65 20 2f 2a 20 3_api;.#else /*
08a0: 6f 72 64 69 6e 61 72 79 20 6c 69 62 20 2a 2f 0a ordinary lib */.
08b0: 23 69 66 64 65 66 20 53 50 4c 5f 41 4d 41 4c 47 #ifdef SPL_AMALG
08c0: 41 4d 41 54 49 4f 4e 09 09 2f 2a 20 73 70 61 74 AMATION../* spat
08d0: 69 61 6c 69 74 65 2d 61 6d 61 6c 67 61 6d 61 74 ialite-amalgamat
08e0: 69 6f 6e 20 2a 2f 0a 23 69 6e 63 6c 75 64 65 20 ion */.#include
08f0: 3c 73 70 61 74 69 61 6c 69 74 65 2f 73 71 6c 69 <spatialite/sqli
0900: 74 65 33 2e 68 3e 0a 23 65 6c 73 65 0a 23 69 6e te3.h>.#else.#in
0910: 63 6c 75 64 65 20 3c 73 71 6c 69 74 65 33 2e 68 clude <sqlite3.h
0920: 3e 0a 23 65 6e 64 69 66 0a 23 65 6e 64 69 66 0a >.#endif.#endif.
0930: 0a 23 69 66 6e 64 65 66 20 53 51 4c 49 54 45 5f .#ifndef SQLITE_
0940: 44 45 54 45 52 4d 49 4e 49 53 54 49 43 0a 2f 2a DETERMINISTIC./*
0950: 20 70 72 6f 62 61 62 6c 79 20 53 51 4c 69 74 65 probably SQLite
0960: 20 3c 20 33 2e 38 2e 33 20 2d 20 61 74 74 65 6d < 3.8.3 - attem
0970: 70 74 69 6e 67 20 74 6f 20 66 69 78 20 2a 2f 0a pting to fix */.
0980: 23 64 65 66 69 6e 65 20 53 51 4c 49 54 45 5f 44 #define SQLITE_D
0990: 45 54 45 52 4d 49 4e 49 53 54 49 43 09 53 51 4c ETERMINISTIC.SQL
09a0: 49 54 45 5f 55 54 46 38 0a 23 65 6e 64 69 66 0a ITE_UTF8.#endif.
09b0: 0a 23 65 6e 64 69 66 0a .#endif.