server/src/kernel/database.c

30 lines
507 B
C
Raw Normal View History

2018-10-24 07:00:26 +02:00
#include "config.h"
#include "database.h"
#include "db/driver.h"
void swapdb_open(void)
{
const char *dbname;
dbname = config_get("game.dbswap");
db_driver_open(DB_SWAP, dbname);
}
void swapdb_close(void)
{
db_driver_close(DB_SWAP);
}
2018-10-24 09:02:19 +02:00
dbrow_id db_string_save(const char *s) {
2018-10-24 07:00:26 +02:00
(void)s;
return 0;
}
2018-10-24 09:02:19 +02:00
dbrow_id dbstring_save(const char *s) {
2018-10-24 07:00:26 +02:00
return db_driver_string_save(s);
}
2018-10-24 09:02:19 +02:00
const char *dbstring_load(dbrow_id id, size_t *size) {
2018-10-24 07:00:26 +02:00
return db_driver_string_load(id, size);
}
2018-10-24 09:02:19 +02:00