载入中...
搜索中...
未找到
eve::database::Repository< T > 模板类 参考
Typed active-record repository built from a Mapping<T>. 更多...
#include <Database.h>
Public 成员函数 | |
| Repository (Connection &connection, Mapping< T > mapping) | |
| Constructs a Repository. | |
| void | createTable (bool ifNotExists=true) |
| Creates table. | |
| int | insert (const T &object) |
| Inserts insert. | |
| std::vector< T > | all () |
| All. | |
| bool | find (const Value &id, T &object) |
| Finds find. | |
| int | update (const T &object) |
| Updates update. | |
| int | remove (const Value &id) |
| Removes remove. | |
| std::vector< T > | select (const std::function< void(Query &)> &configure) |
| Select. | |
详细描述
template<class T>
class eve::database::Repository< T >
class eve::database::Repository< T >
Typed active-record repository built from a Mapping<T>.
Repository public API.
在文件 Database.h 第 184 行定义.
构造及析构函数说明
◆ Repository()
template<class T >
|
inline |
Constructs a Repository.
在文件 Database.h 第 187 行定义.
成员函数说明
◆ all()
template<class T >
|
inline |
◆ createTable()
template<class T >
|
inline |
◆ find()
template<class T >
|
inline |
◆ insert()
template<class T >
|
inline |
◆ remove()
template<class T >
|
inline |
◆ select()
template<class T >
|
inline |
◆ update()
template<class T >
|
inline |
Updates update.
在文件 Database.h 第 224 行定义.
引用了 key, eve::database::Connection::updateByKey() , 以及 values.
该类的文档由以下文件生成:
- src/modules/database/Database.h