载入中...
搜索中...
未找到
eve::database::Field< T > 模板结构体 参考

A named field used by the small, explicit ORM mapping layer. 更多...

#include <Database.h>

Public 属性

std::string name
 
std::function< Value(const T &)> read
 
std::function< void(T &, const Value &)> write
 
std::string sqlType = "TEXT"
 
bool primaryKey = false
 

详细描述

template<class T>
struct eve::database::Field< T >

A named field used by the small, explicit ORM mapping layer.

在文件 Database.h29 行定义.

类成员变量说明

◆ name

template<class T >
std::string eve::database::Field< T >::name

在文件 Database.h30 行定义.

◆ primaryKey

template<class T >
bool eve::database::Field< T >::primaryKey = false

在文件 Database.h34 行定义.

◆ read

template<class T >
std::function<Value(const T&)> eve::database::Field< T >::read

在文件 Database.h31 行定义.

◆ sqlType

template<class T >
std::string eve::database::Field< T >::sqlType = "TEXT"

在文件 Database.h33 行定义.

◆ write

template<class T >
std::function<void(T&, const Value&)> eve::database::Field< T >::write

在文件 Database.h32 行定义.


该结构体的文档由以下文件生成: