drogon/drogon_ctl/templates/dao_h.csp

26 lines
448 B
Plaintext

/**
*
* {{className}}.h
* Created by drogon_ctl
*
*/
#pragma once
namespace drogon_dao
{
namespace {{dbName}}
{
class {{className}}
{
public:
const static std::string primaryKeyName;
const static bool hasPrimaryKey;
const static std::string tableName;
typedef {{primaryKeyType}} PrimaryKeyType;
{{className}}(const Row &r);
};
} // namespace {{dbName}}
} // namespace drogon_dao