mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 08:50:53 +08:00
18 lines
308 B
C
18 lines
308 B
C
|
#pragma once
|
||
|
|
||
|
class dgate_db {
|
||
|
public:
|
||
|
dgate_db(const char* dbfile, const char* charset = "utf-8");
|
||
|
~dgate_db(void);
|
||
|
|
||
|
bool open(void);
|
||
|
bool add(const char* client, const char* name,
|
||
|
time_t stamp, const char* stamp_s);
|
||
|
|
||
|
private:
|
||
|
acl::string dbfile_;
|
||
|
acl::db_sqlite* db_;
|
||
|
|
||
|
bool create_table(void);
|
||
|
};
|