载入中...
搜索中...
未找到
eve::database::Query类 参考
Composable filtered/sorted/paged query shared by C++ and scripts. 更多...
#include <Database.h>
Public 成员函数 | |
| Query (Connection *connection, std::string table) | |
| Query * | where (const std::string &column, const std::string &op, Value value) |
| Query * | whereJson (const std::string &column, const std::string &op, const std::string &valueJson) |
| Query * | orderBy (const std::string &column, bool ascending=true) |
| Query * | limit (int count) |
| Query * | offset (int count) |
| std::vector< Row > | all () |
| std::string | allJson () |
| std::string | firstJson () |
| int | count () |
详细描述
Composable filtered/sorted/paged query shared by C++ and scripts.
在文件 Database.h 第 133 行定义.
构造及析构函数说明
◆ Query()
| eve::database::Query::Query | ( | Connection * | connection, |
| std::string | table | ||
| ) |
在文件 Database.cpp 第 175 行定义.
成员函数说明
◆ all()
| std::vector< Row > eve::database::Query::all | ( | ) |
◆ allJson()
| std::string eve::database::Query::allJson | ( | ) |
在文件 Database.cpp 第 226 行定义.
引用了 all().
◆ count()
| int eve::database::Query::count | ( | ) |
在文件 Database.cpp 第 228 行定义.
引用了 eve::database::Connection::query() , 以及 value.
◆ firstJson()
| std::string eve::database::Query::firstJson | ( | ) |
在文件 Database.cpp 第 227 行定义.
◆ limit()
| Query * eve::database::Query::limit | ( | int | count | ) |
在文件 Database.cpp 第 196 行定义.
引用了 count().
◆ offset()
| Query * eve::database::Query::offset | ( | int | count | ) |
在文件 Database.cpp 第 202 行定义.
引用了 count().
◆ orderBy()
| Query * eve::database::Query::orderBy | ( | const std::string & | column, |
| bool | ascending = true |
||
| ) |
在文件 Database.cpp 第 191 行定义.
◆ where()
◆ whereJson()
| Query * eve::database::Query::whereJson | ( | const std::string & | column, |
| const std::string & | op, | ||
| const std::string & | valueJson | ||
| ) |
在文件 Database.cpp 第 187 行定义.
引用了 where().
该类的文档由以下文件生成:
- src/modules/database/Database.h
- src/modules/database/Database.cpp