Files
auth_service_c/src/db_get_user_by_username.c
T
wt 39ef249f6f
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
some refactor
2025-10-24 14:18:46 +07:00

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
}