summaryrefslogtreecommitdiffstats
path: root/src/sqlite3gen.cpp
Commit message (Collapse)AuthorAgeFilesLines
* sqlite3: speedup the SELECTsAdrian Negreanu2014-02-271-185/+258
| | | | | | | | | | | | | | | | | | The uniqueness of rows is maintained by first doing a select. In case the item is not found, it's INSERTed. This is done for files, refids, params and includes, data that is not unique by itself, like cross-references for example. In other words, you can have many memberdefs in one file, but you can only have one cross-reference between two functions since the reference location is unique. So, when SELECTing files and refids, use the file name and refids as primary key since that's the fastest way to do it. Also 'OR REPLACE' not necessary in 'INSERT OR REPLACE'. Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* Updated copyrightDimitri van Heesch2014-02-111-1/+1
|
* sqlite3: updatesAdrian Negreanu2014-02-081-332/+422
| | | | | | | | | | | | | | | | * template and function arguments * innernamespaces * put sqlite3_stmt and the coresponding query in a struct * use has(Multi|One)LineInitializer instead of hardcoded value when extracting references from initializers * sqlite3_clear_bindings in step() * getRow in step() should use different sqlite3_ functions depending on wether is doing 'INSERT' or 'SELECT' includes table uses only file IDs Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: SQLITE_TRANSIENTsAdrian Negreanu2014-02-011-4/+4
| | | | | In table basecompoundref, use SQLITE_TRANSIENT for base, derived, refid
* sqlite3: extract more infoAdrian Negreanu2014-02-011-13/+21
| | | | | | | | | | memberdef table changes: * rename bstart to bodystart * rename id_bfile to id_bodyfile * add bodyend * add {brief,detailed,inbody}description Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: clear bindings on errors and more care with returnAdrian Negreanu2014-01-141-12/+18
| | | | | | | * call sqlite3_clear_bindings when step fails * more miss-placed returns Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: remove some debug messagesAdrian Negreanu2014-01-091-2/+0
| | | | | | these were causing a major performance hit Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: leave out insertMemberReference until xref location is validAdrian Negreanu2014-01-091-1/+2
| | | | | | | the code comes from the early stage of sqlite3gen, when xref keys were kept as "file:line:column", not as function name. Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: use the new qtools APIAdrian Negreanu2014-01-081-6/+8
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: add memberdef initializerAdrian Negreanu2013-08-171-2/+5
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: make innerclass refid non-transientAdrian Negreanu2013-08-171-1/+1
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: be more careful with returnAdrian Negreanu2013-08-171-6/+14
| | | | | | | | | | return-ing on a "step" failure, drops any info that could be extracted further on. instead, call sqlite3_clear_bindings() statements fail and carry on Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: shuffle the code so it's aligned with xmlgen.cppAdrian Negreanu2013-08-051-207/+210
| | | | | | this way, it's easier to see what's missing from sqlite3gen Signed-off-by: Adrian Negreanu <groleo@gmail.com>
* sqlite3: more SQLITE_TRANSIENT-sAdrian Negreanu2013-08-041-2/+2
| | | | Signed-off-by: Adrian Negreanu <groleo@gmail.com>
* sqlite3: no more exitAdrian Negreanu2013-08-031-17/+29
| | | | Signed-off-by: Adrian Negreanu <groleo@gmail.com>
* sqlite3: support for includes and includedbyAdrian Negreanu2013-08-031-16/+46
| | | | Signed-off-by: Adrian Negreanu <groleo@gmail.com>
* sqlite3: sometimes bindXParameter requires SQLITE_TRANSIENTAdrian Negreanu2013-08-031-5/+5
| | | | Signed-off-by: Adrian Negreanu <groleo@gmail.com>
* sqlite3: add stubs for page, dirs, example and main-pageAdrian Negreanu2013-08-031-3/+65
| | | | Signed-off-by: Adrian Negreanu <groleo@gmail.com>
* sqlite3: update the commentsAdrian Negreanu2013-08-031-32/+47
| | | | Signed-off-by: Adrian Negreanu <groleo@gmail.com>
* sqlite3: cleanup prepareStatementsAdrian Negreanu2013-08-031-60/+21
|
* sqlite3: fix warning 'set but not used'Adrian Negreanu2013-08-031-2/+0
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: remove commented codeAdrian Negreanu2013-08-031-264/+0
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: capitalize FROM keywordAdrian Negreanu2013-08-021-2/+2
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* Fixed potential crash in sqlite3 supportDimitri van Heesch2013-07-021-1/+4
|
* sqlite3: remove trailing spacesAdrian Negreanu2013-06-181-33/+33
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: fix some copy-pasteAdrian Negreanu2013-06-181-3/+3
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* sqlite3: fix misleading error messageAdrian Negreanu2013-06-181-1/+1
| | | | Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
* Fixed build issue when using --with-sqlite3 optionDimitri van Heesch2013-05-201-5/+5
|
* Release-1.8.3.1-20130512Dimitri van Heesch2013-05-121-1/+1
|
* Release-1.8.3.1-20130209Dimitri van Heesch2013-02-091-0/+1361