mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-02-13 22:09:23 -06:00
117 lines
4.4 KiB
C++
117 lines
4.4 KiB
C++
#pragma once
|
|
#ifndef ORM_CONSTANTS_EXTERN_HPP
|
|
#define ORM_CONSTANTS_EXTERN_HPP
|
|
|
|
#include "orm/macros/systemheader.hpp"
|
|
TINY_SYSTEM_HEADER
|
|
|
|
#include <QString>
|
|
|
|
#include "orm/macros/commonnamespace.hpp"
|
|
#include "orm/macros/export.hpp"
|
|
|
|
TINYORM_BEGIN_COMMON_NAMESPACE
|
|
|
|
/*! Namespace constains common chars and strings. */
|
|
namespace Orm::Constants
|
|
{
|
|
|
|
// Common chars
|
|
SHAREDLIB_EXPORT extern const QChar SPACE;
|
|
SHAREDLIB_EXPORT extern const QChar DOT;
|
|
SHAREDLIB_EXPORT extern const QChar SEMICOLON;
|
|
SHAREDLIB_EXPORT extern const QChar COLON;
|
|
SHAREDLIB_EXPORT extern const QChar UNDERSCORE;
|
|
SHAREDLIB_EXPORT extern const QChar DASH;
|
|
SHAREDLIB_EXPORT extern const QChar MINUS;
|
|
SHAREDLIB_EXPORT extern const QChar PLUS;
|
|
SHAREDLIB_EXPORT extern const QChar ASTERISK_C;
|
|
SHAREDLIB_EXPORT extern const QChar COMMA_C;
|
|
SHAREDLIB_EXPORT extern const QChar EQ_C;
|
|
SHAREDLIB_EXPORT extern const QChar NOT_C;
|
|
SHAREDLIB_EXPORT extern const QChar LT_C;
|
|
SHAREDLIB_EXPORT extern const QChar GT_C;
|
|
|
|
// Common strings
|
|
SHAREDLIB_EXPORT extern const QString ASTERISK;
|
|
SHAREDLIB_EXPORT extern const QString COMMA;
|
|
SHAREDLIB_EXPORT extern const QString INNER;
|
|
SHAREDLIB_EXPORT extern const QString LEFT;
|
|
SHAREDLIB_EXPORT extern const QString RIGHT;
|
|
SHAREDLIB_EXPORT extern const QString CROSS;
|
|
SHAREDLIB_EXPORT extern const QString ASC;
|
|
SHAREDLIB_EXPORT extern const QString DESC;
|
|
SHAREDLIB_EXPORT extern const QString ID;
|
|
SHAREDLIB_EXPORT extern const QString NAME;
|
|
SHAREDLIB_EXPORT extern const QString CREATED_AT;
|
|
SHAREDLIB_EXPORT extern const QString UPDATED_AT;
|
|
SHAREDLIB_EXPORT extern const QString PARENTH_ONE;
|
|
SHAREDLIB_EXPORT extern const QString NEWLINE;
|
|
|
|
SHAREDLIB_EXPORT extern const QString QMYSQL;
|
|
SHAREDLIB_EXPORT extern const QString QPSQL;
|
|
SHAREDLIB_EXPORT extern const QString QSQLITE;
|
|
SHAREDLIB_EXPORT extern const QString MYSQL_;
|
|
SHAREDLIB_EXPORT extern const QString POSTGRESQL;
|
|
SHAREDLIB_EXPORT extern const QString SQLITE;
|
|
|
|
SHAREDLIB_EXPORT extern const QString driver_;
|
|
SHAREDLIB_EXPORT extern const QString host_;
|
|
SHAREDLIB_EXPORT extern const QString port_;
|
|
SHAREDLIB_EXPORT extern const QString database_;
|
|
SHAREDLIB_EXPORT extern const QString schema_;
|
|
SHAREDLIB_EXPORT extern const QString username_;
|
|
SHAREDLIB_EXPORT extern const QString password_;
|
|
SHAREDLIB_EXPORT extern const QString charset_;
|
|
SHAREDLIB_EXPORT extern const QString collation_;
|
|
SHAREDLIB_EXPORT extern const QString timezone_;
|
|
SHAREDLIB_EXPORT extern const QString prefix_;
|
|
SHAREDLIB_EXPORT extern const QString options_;
|
|
SHAREDLIB_EXPORT extern const QString strict_;
|
|
|
|
SHAREDLIB_EXPORT extern const QString isolation_level;
|
|
SHAREDLIB_EXPORT extern const QString foreign_key_constraints;
|
|
SHAREDLIB_EXPORT extern const QString check_database_exists;
|
|
|
|
SHAREDLIB_EXPORT extern const QString H127001;
|
|
SHAREDLIB_EXPORT extern const QString LOCALHOST;
|
|
SHAREDLIB_EXPORT extern const QString P3306;
|
|
SHAREDLIB_EXPORT extern const QString P5432;
|
|
SHAREDLIB_EXPORT extern const QString ROOT;
|
|
SHAREDLIB_EXPORT extern const QString UTC;
|
|
SHAREDLIB_EXPORT extern const QString LOCAL;
|
|
SHAREDLIB_EXPORT extern const QString SYSTEM;
|
|
SHAREDLIB_EXPORT extern const QString PUBLIC;
|
|
SHAREDLIB_EXPORT extern const QString UTF8;
|
|
SHAREDLIB_EXPORT extern const QString UTF8MB4;
|
|
|
|
// Comparison/logical/search operators
|
|
SHAREDLIB_EXPORT extern const QString EQ;
|
|
SHAREDLIB_EXPORT extern const QString NE;
|
|
SHAREDLIB_EXPORT extern const QString LT;
|
|
SHAREDLIB_EXPORT extern const QString LE;
|
|
SHAREDLIB_EXPORT extern const QString GT;
|
|
SHAREDLIB_EXPORT extern const QString GE;
|
|
SHAREDLIB_EXPORT extern const QString OR;
|
|
SHAREDLIB_EXPORT extern const QString AND;
|
|
SHAREDLIB_EXPORT extern const QString NOT;
|
|
SHAREDLIB_EXPORT extern const QString LIKE;
|
|
SHAREDLIB_EXPORT extern const QString NLIKE;
|
|
SHAREDLIB_EXPORT extern const QString ILIKE;
|
|
|
|
// Alternatives
|
|
SHAREDLIB_EXPORT extern const QString NE_;
|
|
SHAREDLIB_EXPORT extern const QString OR_;
|
|
SHAREDLIB_EXPORT extern const QString AND_;
|
|
SHAREDLIB_EXPORT extern const QString NOT_;
|
|
|
|
// Bitewise operators
|
|
SHAREDLIB_EXPORT extern const QString B_OR;
|
|
SHAREDLIB_EXPORT extern const QString B_AND;
|
|
|
|
} // namespace Orm::Constants
|
|
|
|
TINYORM_END_COMMON_NAMESPACE
|
|
|
|
#endif // ORM_CONSTANTS_EXTERN_HPP
|