Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 16s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 13s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make-Without-sqlite3 (push) Successful in 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake-Without-sqlite3 (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson-Without-sqlite3 (push) Successful in 13s
16 lines
294 B
C
16 lines
294 B
C
#include "user.h"
|
|
|
|
#ifdef USE_SQLITE3
|
|
#include "sqlite_db/sqlite.h"
|
|
#else
|
|
#include "file_db/filedb.h"
|
|
#endif
|
|
|
|
User *db_get_user_by_username(const char *username) {
|
|
#ifdef USE_SQLITE3
|
|
return sqlite_get_user_by_username(username);
|
|
#else
|
|
return filedb_get_user_by_username(username);
|
|
#endif
|
|
}
|