ORM C++
Loading...
Searching...
No Matches
orm::db::SqlDialect Class Referenceabstractexport
module orm
Inheritance diagram for orm::db::SqlDialect:

Public Member Functions

virtual ~SqlDialect ()=default
virtual auto quoteIdentifier (std::string_view identifier) const -> std::string=0
virtual auto bindMarker (std::string_view logicalName) const -> std::string=0
virtual auto toSqlType (model::ColumnType type, std::optional< std::size_t > maxStringLength=std::nullopt) const -> std::string=0
virtual auto renderStringLengthConstraint (std::string_view, std::optional< std::size_t >) const -> std::string
virtual auto renderCreateTablePrefix (std::string_view tableName, bool ifNotExists) const -> std::string=0
virtual auto renderCreateTableSuffix () const -> std::string
virtual auto renderDefaultInsert (std::string_view tableName) const -> std::string
virtual auto renderDropTable (std::string_view tableName, bool ifExists) const -> std::string=0
virtual auto renderAutoIncrementPrimaryKey (std::string_view columnName) const -> std::string=0
virtual auto renderPagination (const PaginationSpec &pagination) const -> std::string=0
virtual auto renderInsertIfAbsent (const InsertIfAbsentSpec &insert) const -> std::string=0
virtual auto renderAggregateResult (std::string_view expression, bool) const -> std::string

Detailed Description

Definition at line 392 of file contracts.cppm.

Constructor & Destructor Documentation

◆ ~SqlDialect()

virtual orm::db::SqlDialect::~SqlDialect ( )
virtualdefault

Member Function Documentation

◆ bindMarker()

virtual auto orm::db::SqlDialect::bindMarker ( std::string_view logicalName) const -> std::string
nodiscardpure virtual

◆ quoteIdentifier()

virtual auto orm::db::SqlDialect::quoteIdentifier ( std::string_view identifier) const -> std::string
nodiscardpure virtual

◆ renderAggregateResult()

virtual auto orm::db::SqlDialect::renderAggregateResult ( std::string_view expression,
bool  ) const -> std::string
inlinenodiscardvirtual

◆ renderAutoIncrementPrimaryKey()

virtual auto orm::db::SqlDialect::renderAutoIncrementPrimaryKey ( std::string_view columnName) const -> std::string
nodiscardpure virtual

◆ renderCreateTablePrefix()

virtual auto orm::db::SqlDialect::renderCreateTablePrefix ( std::string_view tableName,
bool ifNotExists ) const -> std::string
nodiscardpure virtual

◆ renderCreateTableSuffix()

virtual auto orm::db::SqlDialect::renderCreateTableSuffix ( ) const -> std::string
inlinenodiscardvirtual

Reimplemented in orm::db::mariadb::MariadbDialect, and orm::db::mysql::MysqlDialect.

Definition at line 409 of file contracts.cppm.

◆ renderDefaultInsert()

virtual auto orm::db::SqlDialect::renderDefaultInsert ( std::string_view tableName) const -> std::string
inlinenodiscardvirtual

Reimplemented in orm::db::mariadb::MariadbDialect, and orm::db::mysql::MysqlDialect.

Definition at line 413 of file contracts.cppm.

◆ renderDropTable()

virtual auto orm::db::SqlDialect::renderDropTable ( std::string_view tableName,
bool ifExists ) const -> std::string
nodiscardpure virtual

◆ renderInsertIfAbsent()

virtual auto orm::db::SqlDialect::renderInsertIfAbsent ( const InsertIfAbsentSpec & insert) const -> std::string
nodiscardpure virtual

◆ renderPagination()

virtual auto orm::db::SqlDialect::renderPagination ( const PaginationSpec & pagination) const -> std::string
nodiscardpure virtual

◆ renderStringLengthConstraint()

virtual auto orm::db::SqlDialect::renderStringLengthConstraint ( std::string_view ,
std::optional< std::size_t >  ) const -> std::string
inlinenodiscardvirtual

Reimplemented in orm::db::sqlite::SqliteDialect.

Definition at line 402 of file contracts.cppm.

◆ toSqlType()

virtual auto orm::db::SqlDialect::toSqlType ( model::ColumnType type,
std::optional< std::size_t > maxStringLength = std::nullopt ) const -> std::string
nodiscardpure virtual

The documentation for this class was generated from the following file: