ORM C++
Loading...
Searching...
No Matches
types.cppm File Reference
module orm
#include <optional>
#include <stdexcept>
#include <string>
#include <utility>
Include dependency graph for types.cppm:

Go to the source code of this file.

Classes

class  orm::DatabaseError
 A backend-neutral database runtime error. More...

Namespaces

namespace  orm
namespace  orm::model
namespace  orm::db

Enumerations

enum class  orm::model::ColumnType {
  orm::model::Bool , orm::model::Char , orm::model::UnsignedChar , orm::model::Short ,
  orm::model::UnsignedShort , orm::model::Int , orm::model::UnsignedInt , orm::model::LongLong ,
  orm::model::UnsignedLongLong , orm::model::Float , orm::model::Double , orm::model::String ,
  orm::model::Uuid , orm::model::Date , orm::model::TimeOfDay , orm::model::LocalDateTime ,
  orm::model::UtcTimestamp
}
enum class  orm::model::RelationKind { orm::model::ToOne , orm::model::OneToMany , orm::model::ManyToMany }
enum class  orm::db::BackendType {
  orm::db::Sqlite = 0 , orm::db::Postgres = 1 , orm::db::Mysql = 2 , orm::db::Oracle = 3 ,
  orm::db::Firebird = 4 , orm::db::Db2 = 5 , orm::db::Odbc = 6 , orm::db::Empty = 7 ,
  orm::db::Mariadb = 8
}
enum class  orm::db::CompiledSqlFlavor { orm::db::None , orm::db::SQLite , orm::db::PostgreSQL , orm::db::MySQLFamily }
enum class  orm::DatabaseErrorCode {
  orm::NotConnected , orm::AlreadyConnected , orm::UnsupportedBackend , orm::UnsupportedFeature ,
  orm::Connection , orm::Statement , orm::Constraint , orm::Transaction ,
  orm::Conversion , orm::AffectedRowsUnavailable , orm::CommitUncertain
}

Functions

auto orm::model::toString (ColumnType type) -> std::string