载入中...
搜索中...
未找到
eve::database::Query类 参考

Composable filtered/sorted/paged query shared by C++ and scripts. 更多...

#include <Database.h>

Public 成员函数

 Query (Connection *connection, std::string table)
 Queries Query.
 
Query * where (const std::string &column, const std::string &op, Value value)
 Where.
 
Query * whereJson (const std::string &column, const std::string &op, const std::string &valueJson)
 Where json.
 
Query * orderBy (const std::string &column, bool ascending=true)
 Order by.
 
Query * limit (int count)
 Limit.
 
Query * offset (int count)
 Offset.
 
std::vector< Row > all ()
 All.
 
std::string allJson ()
 All json.
 
std::string firstJson ()
 First json.
 
int count ()
 Returns the number of count.
 

详细描述

Composable filtered/sorted/paged query shared by C++ and scripts.

在文件 Database.h 第 148 行定义.

构造及析构函数说明

◆ Query()

eve::database::Query::Query ( Connection *  connection,
std::string  table 
)

Queries Query.

在文件 Database.cpp 第 175 行定义.

成员函数说明

◆ all()

std::vector< Row > eve::database::Query::all ( )

All.

在文件 Database.cpp 第 225 行定义.

引用了 eve::database::Connection::query().

被这些函数引用 allJson().

◆ allJson()

std::string eve::database::Query::allJson ( )

All json.

在文件 Database.cpp 第 226 行定义.

引用了 all().

◆ count()

int eve::database::Query::count ( )

Returns the number of count.

在文件 Database.cpp 第 228 行定义.

引用了 number, eve::database::Connection::query(), rows, text , 以及 value.

被这些函数引用 limit() , 以及 offset().

◆ firstJson()

std::string eve::database::Query::firstJson ( )

First json.

在文件 Database.cpp 第 227 行定义.

引用了 eve::database::Connection::query().

◆ limit()

Query * eve::database::Query::limit ( int  count)

Limit.

在文件 Database.cpp 第 196 行定义.

引用了 count().

◆ offset()

Query * eve::database::Query::offset ( int  count)

Offset.

在文件 Database.cpp 第 202 行定义.

引用了 count().

◆ orderBy()

Query * eve::database::Query::orderBy ( const std::string &  column,
bool  ascending = true 
)

Order by.

在文件 Database.cpp 第 191 行定义.

引用了 column.

◆ where()

Query * eve::database::Query::where ( const std::string &  column,
const std::string &  op,
Value  value 
)

Where.

在文件 Database.cpp 第 179 行定义.

引用了 column, literal , 以及 value.

被这些函数引用 whereJson().

◆ whereJson()

Query * eve::database::Query::whereJson ( const std::string &  column,
const std::string &  op,
const std::string &  valueJson 
)

Where json.

在文件 Database.cpp 第 187 行定义.

引用了 column , 以及 where().


该类的文档由以下文件生成: