Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Documentation updates. (CVS 1946) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
799f5383c0c72a74c7b29f9f40fc949f |
User & Date: | drh 2004-09-08 13:06:21.000 |
Context
2004-09-08
| ||
13:07 | Add new APIs to sqlite3.def: sqlite3_bind_parameter_name and sqlite3_bind_parameter_index. (CVS 1947) (check-in: ff256fb528 user: drh tags: trunk) | |
13:06 | Documentation updates. (CVS 1946) (check-in: 799f5383c0 user: drh tags: trunk) | |
2004-09-07
| ||
16:19 | Wildcards with the same name map into the same variable number. New api sqlite3_bind_parameter_index() added to map wildcard names into wildcard index numbers. Support for "?nnn" wildcards. (CVS 1945) (check-in: 435b3f301f user: drh tags: trunk) | |
Changes
Changes to www/arch.tcl.
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 | - + | # # Run this Tcl script to generate the sqlite.html file. # |
︙ | |||
20 21 22 23 24 25 26 | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | - - - - - - - - - - - - - - - + - - - + - - - - - + + + - + - - + + - + - + - + - - - - - + - - + | <p> A block diagram showing the main components of SQLite and how they interrelate is shown at the right. The text that follows will provide a quick overview of each of these components. </p> |
︙ | |||
109 110 111 112 113 114 115 | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | - + + + + - - + + + + + + + - + - + + + - + + + + + + + + + + + + + + - + + - - + + + + - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + + | </p> <h3>Code Generator</h3> <p>After the parser assembles tokens into complete SQL statements, it calls the code generator to produce virtual machine code that will do the work that the SQL statements request. There are many |
Changes to www/arch2.gif.
cannot compute difference between binary files
Changes to www/lang.tcl.
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 | - + | # # Run this Tcl script to generate the sqlite.html file. # |
︙ | |||
179 180 181 182 183 184 185 | 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | - + - | } Syntax {sql-statement} { ROLLBACK [TRANSACTION [<name>]] } puts { <p>Beginning in version 2.0, SQLite supports transactions with |
︙ | |||
257 258 259 260 261 262 263 264 265 266 267 268 269 270 | 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | + + + | [ USING DELIMITERS <delim> ] } puts { <p>The COPY command is available in SQLite version 2.8 and earlier. The COPY command has been removed from SQLite version 3.0 due to complications in trying to support it in a mixed UTF-8/16 environment. In version 3.0, the <a href="sqlite.html">command-line shell</a> contains a new command <b>.import</b> that can be used as a substitute for COPY. </p> <p>The COPY command is an extension used to load large amounts of data into a table. It is modeled after a similar command found in PostgreSQL. In fact, the SQLite COPY command is specifically designed to be able to read the output of the PostgreSQL dump utility <b>pg_dump</b> so that data can be easily transferred from |
︙ | |||
385 386 387 388 389 390 391 | 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 | - + - + | followed by the name of a new table and a parenthesized list of column definitions and constraints. The table name can be either an identifier or a string. Tables names that begin with "<b>sqlite_</b>" are reserved for use by the engine.</p> <p>Each column definition is the name of the column followed by the datatype for that column, then one or more optional column constraints. |
︙ | |||
444 445 446 447 448 449 450 | 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 | - - + + + | Support for CHECK constraints may be added in the future. As of version 2.3.0, NOT NULL, PRIMARY KEY, and UNIQUE constraints all work.</p> <p>There are no arbitrary limits on the number of columns or on the number of constraints in a table. The total amount of data in a single row is limited to about |
︙ | |||
700 701 702 703 704 705 706 | 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 | - + + | Section {DROP INDEX} dropindex Syntax {sql-command} { DROP INDEX [<database-name> .] <index-name> } puts { |
︙ | |||
917 918 919 920 921 922 923 | 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 | - + - - + + | function can be used in any expression. Simple functions return a result immediately based on their inputs. Aggregate functions may only be used in a SELECT statement. Aggregate functions compute their result across all rows of the result set.</p> <p>The functions shown below are available by default. Additional functions may be written in C and added to the database engine using |
︙ | |||
969 970 971 972 973 974 975 | 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 | - - + + | characters is returned, not the number of bytes.</td> </tr> <tr> <a name="likeFunc"></a> <td valign="top" align="right">like(<i>X</i>,<i>Y</i>)</td> <td valign="top">This function is used to implement the |
︙ | |||
1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 | 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 | + + + + + + + + + + + | <tr> <td valign="top" align="right">nullif(<i>X</i>,<i>Y</i>)</td> <td valign="top">Return the first argument if the arguments are different, otherwise return NULL.</td> </tr> <tr> <td valign="top" align="right">quote(<i>X</i>)</td> <td valign="top">This routine returns a string which is the value of its argument suitable for inclusion into another SQL statement. Strings are surrounded by single-quotes with escapes on interior quotes as needed. BLOBs are encoded as hexadecimal literals. The current implementation of VACUUM uses this function. The function is also useful when writing triggers to implement undo/redo functionality. </td> </tr> <tr> <td valign="top" align="right">random(*)</td> <td valign="top">Return a random integer between -2147483648 and +2147483647.</td> </tr> <tr> |
︙ | |||
1049 1050 1051 1052 1053 1054 1055 | 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 | + - - + + + - + | right rather than the left. If SQLite is configured to support UTF-8, then characters indices refer to actual UTF-8 characters, not bytes.</td> </tr> <tr> <td valign="top" align="right">typeof(<i>X</i>)</td> <td valign="top">Return the type of the expression <i>X</i>. The only return values are "null", "integer", "real", "text", and "blob". |
︙ | |||
1266 1267 1268 1269 1270 1271 1272 | 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 | - - + + + + | the main database. The second row will be for the database used to store temporary tables.</p></li> <a name="pragma_default_cache_size"></a> <li><p><b>PRAGMA default_cache_size; <br>PRAGMA default_cache_size = </b><i>Number-of-pages</i><b>;</b></p> <p>Query or change the maximum number of database disk pages that SQLite |
︙ | |||
1304 1305 1306 1307 1308 1309 1310 | 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 | - + + + | crashes or the computer loses power before that data has been written to the disk surface. On the other hand, some operations are as much as 50 or more times faster with synchronous OFF. </p> <p>This pragma changes the synchronous mode persistently. Once changed, the mode stays as set even if the database is closed and reopened. The <a href="#pragma_synchronous"><b>synchronous</b></a> pragma does the same |
︙ |