载入中...
搜索中...
未找到
eve::database::Model类 参考
Runtime ORM model exposed to Squirrel. 更多...
#include <Database.h>
Public 成员函数 | |
| Model (Connection *connection, std::string table, std::string primaryKey) | |
| int | insertJson (const std::string &json) |
| std::string | allJson () |
| std::string | findJson (const std::string &idJson) |
| int | updateJson (const std::string &idJson, const std::string &json) |
| int | remove (const std::string &idJson) |
| Query * | query () |
详细描述
Runtime ORM model exposed to Squirrel.
在文件 Database.h 第 222 行定义.
构造及析构函数说明
◆ Model()
| eve::database::Model::Model | ( | Connection * | connection, |
| std::string | table, | ||
| std::string | primaryKey | ||
| ) |
在文件 Database.cpp 第 238 行定义.
成员函数说明
◆ allJson()
| std::string eve::database::Model::allJson | ( | ) |
在文件 Database.cpp 第 244 行定义.
◆ findJson()
| std::string eve::database::Model::findJson | ( | const std::string & | idJson | ) |
在文件 Database.cpp 第 245 行定义.
◆ insertJson()
在文件 Database.cpp 第 243 行定义.
◆ query()
| Query * eve::database::Model::query | ( | ) |
在文件 Database.cpp 第 254 行定义.
被这些函数引用 allJson(), findJson(), remove() , 以及 updateJson().
◆ remove()
在文件 Database.cpp 第 251 行定义.
◆ updateJson()
在文件 Database.cpp 第 248 行定义.
该类的文档由以下文件生成:
- src/modules/database/Database.h
- src/modules/database/Database.cpp