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) Failing after 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
get_user_by_username get_user_field_by_id
18 lines
299 B
C
18 lines
299 B
C
#pragma once
|
|
|
|
#include <pthread.h>
|
|
|
|
#ifdef USE_SQLITE3
|
|
#include <sqlite3.h>
|
|
extern sqlite3 *db;
|
|
extern pthread_mutex_t db_mutex;
|
|
#else
|
|
#include <stdio.h>
|
|
extern FILE *users_file;
|
|
extern pthread_mutex_t users_file_mutex;
|
|
#endif
|
|
|
|
void init_db();
|
|
void migrate_db();
|
|
char *json_escape(const char *str);
|