📄 dbwrapper.c
字号:
#include <stdio.h>#include <glib.h>#include "dbwrapper.h"#include "debug.h"/* Global pointer of current connection to the database */DbConnection *globaldbconn;/** * db_dbgetserver: * * Inform you of what type of database server your connected to. */gintdb_dbgetserver() { if (globaldbconn == NULL) { errormsg("globaldbconn is null, initilise database first"); return -1; } return globaldbconn->dbserver; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -