2589{
2590
2591
2592
2593
2594
2595
2596
2598 if (db==nullptr)
2599 {
2600 return;
2601 }
2602
2603# ifdef SQLITE3_DEBUG
2604
2605 sqlite3_trace(db, &sqlLog, nullptr);
2606# endif
2607
2610
2612 return;
2613
2615 {
2616 err(
"sqlite generator: prepareStatements failed!\n");
2617 return;
2618 }
2619
2621
2622
2624 {
2625 msg(
"Generating Sqlite3 output for class %s\n",
qPrint(cd->name()));
2627 }
2628
2629
2631 {
2632 msg(
"Generating Sqlite3 output for concept %s\n",
qPrint(cd->name()));
2634 }
2635
2636
2638 {
2639 msg(
"Generating Sqlite3 output for module %s\n",
qPrint(mod->name()));
2641 }
2642
2643
2645 {
2646 msg(
"Generating Sqlite3 output for namespace %s\n",
qPrint(nd->name()));
2648 }
2649
2650
2652 {
2653 for (const auto &fd : *fn)
2654 {
2655 msg(
"Generating Sqlite3 output for file %s\n",
qPrint(fd->name()));
2657 }
2658 }
2659
2660
2662 {
2663 msg(
"Generating Sqlite3 output for group %s\n",
qPrint(gd->name()));
2665 }
2666
2667
2669 {
2670 msg(
"Generating Sqlite3 output for page %s\n",
qPrint(pd->name()));
2672 }
2673
2674
2676 {
2677 msg(
"Generating Sqlite3 output for dir %s\n",
qPrint(dd->name()));
2679 }
2680
2681
2683 {
2684 msg(
"Generating Sqlite3 output for example %s\n",
qPrint(pd->name()));
2686 }
2687
2688
2690 {
2691 msg(
"Generating Sqlite3 output for the main page\n");
2693 }
2694
2695
2696
2698 return;
2699
2701}
static NamespaceLinkedMap * namespaceLinkedMap
static ConceptLinkedMap * conceptLinkedMap
static std::unique_ptr< PageDef > mainPage
static FileNameLinkedMap * inputNameLinkedMap
static ClassLinkedMap * classLinkedMap
static PageLinkedMap * exampleLinkedMap
static PageLinkedMap * pageLinkedMap
static DirLinkedMap * dirLinkedMap
static GroupLinkedMap * groupLinkedMap
static ModuleManager & instance()
void msg(const char *fmt,...)
const char * qPrint(const char *s)
static void recordMetadata()
static int initializeTables(sqlite3 *db)
static void generateSqlite3ForModule(const ModuleDef *mod)
static void beginTransaction(sqlite3 *db)
static void generateSqlite3ForConcept(const ConceptDef *cd)
static void generateSqlite3ForGroup(const GroupDef *gd)
static int prepareStatements(sqlite3 *db)
static void endTransaction(sqlite3 *db)
static void generateSqlite3ForDir(const DirDef *dd)
static int initializeViews(sqlite3 *db)
static sqlite3 * openDbConnection()
static void generateSqlite3ForClass(const ClassDef *cd)
static void generateSqlite3ForNamespace(const NamespaceDef *nd)
static void generateSqlite3ForFile(const FileDef *fd)
static void generateSqlite3ForPage(const PageDef *pd, bool isExample)
static void pragmaTuning(sqlite3 *db)