Temporary printf()'s per db backend for main.

This commit is contained in:
Relintai 2020-11-28 14:52:46 +01:00
parent 1fb86ff755
commit 4e2ef6f1e9

View File

@ -1,15 +1,28 @@
#include <iostream> #include <iostream>
#include <string> #include <string>
#include "core/http_server.h"
#include "core/application.h" #include "core/application.h"
#include "core/file_cache.h" #include "core/file_cache.h"
#include "core/http_server.h"
#include "rdn_application.h" #include "rdn_application.h"
#define MAIN_CLASS RDNApplication #define MAIN_CLASS RDNApplication
int main(int argc, char **argv) { int main(int argc, char **argv) {
#if MYSQL_PRESENT
printf("mysql present\n");
#endif
#if PGSQL_PRESENT
printf("pgsql present\n");
#endif
#if SQLITE_PRESENT
printf("sqlite present\n");
#endif
FileCache *file_cache = new FileCache(true); FileCache *file_cache = new FileCache(true);
file_cache->wwwroot = "./www"; file_cache->wwwroot = "./www";
file_cache->wwwroot_refresh_cache(); file_cache->wwwroot_refresh_cache();