ORM C++
Loading...
Searching...
No Matches
commands.cppm File Reference
module orm
#include <cstddef>
#include <format>
#include <memory>
#include <stdexcept>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
import orm:sql_contracts;
Include dependency graph for commands.cppm:

Go to the source code of this file.

Classes

struct  orm::db::InsertManySpec
class  orm::db::CommandGenerator
class  orm::db::DefaultCommandGenerator
class  orm::db::CommandGeneratorFactory

Namespaces

namespace  orm
namespace  orm::db
namespace  orm::db::relations

Typedefs

using orm::db::SelectStatement = Statement

Functions

auto orm::db::insertManyParameterName (std::size_t rowIndex, std::string_view logicalName) -> std::string
auto orm::db::relations::createTableStatements (const SqlDialect &dialect, model::ModelView owner, BackendType backend=BackendType::Empty) -> std::vector< std::string >
auto orm::db::relations::dropTableStatements (const SqlDialect &dialect, model::ModelView owner) -> std::vector< std::string >
auto orm::db::relations::linkStatement (const SqlDialect &dialect, model::ModelView owner, model::RelationView relation, const binding::PrimaryKey &ownerKey, const binding::PrimaryKey &targetKey, BackendType backend=BackendType::Empty) -> Statement
auto orm::db::relations::linkInsertSpec (model::ModelView owner, model::RelationView relation, const binding::PrimaryKey &ownerKey, const binding::PrimaryKey &targetKey) -> InsertIfAbsentSpec
auto orm::db::relations::unlinkStatement (const SqlDialect &dialect, model::ModelView owner, model::RelationView relation, const binding::PrimaryKey &ownerKey, const binding::PrimaryKey &targetKey, BackendType backend=BackendType::Empty) -> Statement
auto orm::db::relations::collectionSelectStatement (const SqlDialect &dialect, model::ModelView owner, model::RelationView relation, std::string targetSelectSql, const std::vector< binding::PrimaryKey > &ownerKeys, bool joinedValues, BackendType backend=BackendType::Empty) -> Statement