OLD | NEW |
1 | 1 |
2 1. FTS2 Tokenizers | 2 1. FTS2 Tokenizers |
3 | 3 |
4 When creating a new full-text table, FTS2 allows the user to select | 4 When creating a new full-text table, FTS2 allows the user to select |
5 the text tokenizer implementation to be used when indexing text | 5 the text tokenizer implementation to be used when indexing text |
6 by specifying a "tokenizer" clause as part of the CREATE VIRTUAL TABLE | 6 by specifying a "tokenizer" clause as part of the CREATE VIRTUAL TABLE |
7 statement: | 7 statement: |
8 | 8 |
9 CREATE VIRTUAL TABLE <table-name> USING fts2( | 9 CREATE VIRTUAL TABLE <table-name> USING fts2( |
10 <columns ...> [, tokenizer <tokenizer-name> [<tokenizer-args>]] | 10 <columns ...> [, tokenizer <tokenizer-name> [<tokenizer-args>]] |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 sqlite3_bind_text(pStmt, 1, zName, -1, SQLITE_STATIC); | 125 sqlite3_bind_text(pStmt, 1, zName, -1, SQLITE_STATIC); |
126 if( SQLITE_ROW==sqlite3_step(pStmt) ){ | 126 if( SQLITE_ROW==sqlite3_step(pStmt) ){ |
127 if( sqlite3_column_type(pStmt, 0)==SQLITE_BLOB ){ | 127 if( sqlite3_column_type(pStmt, 0)==SQLITE_BLOB ){ |
128 memcpy(pp, sqlite3_column_blob(pStmt, 0), sizeof(*pp)); | 128 memcpy(pp, sqlite3_column_blob(pStmt, 0), sizeof(*pp)); |
129 } | 129 } |
130 } | 130 } |
131 | 131 |
132 return sqlite3_finalize(pStmt); | 132 return sqlite3_finalize(pStmt); |
133 } | 133 } |
OLD | NEW |