mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-01-06 02:49:31 -06:00
Added practically everything I wanted to have in except for updating columns. Needed to name the schema namespace as Orm::SchemaNs to avoid collision with the Orm::Schema class. - unit tests with great coverage - new schema constants - a new prefix_indexes and engine DB conncetion configurations Others: - IsModel tag - enhanced columnize in the BaseGrammar - used a new columnize logic in all grammars - new constants - new container utils class for joining containers - new DB::driver() getter for QSqlDriver - avoid possible crash in tests with pretend, added empty log checks - clang tidy, excluded to word from short variable names
33 lines
703 B
C++
33 lines
703 B
C++
#pragma once
|
|
#ifndef ORM_SCHEMA_SQLITESCHEMABUILDER_HPP
|
|
#define ORM_SCHEMA_SQLITESCHEMABUILDER_HPP
|
|
|
|
#include "orm/macros/systemheader.hpp"
|
|
TINY_SYSTEM_HEADER
|
|
|
|
#include "orm/schema/schemabuilder.hpp"
|
|
|
|
TINYORM_BEGIN_COMMON_NAMESPACE
|
|
|
|
namespace Orm::SchemaNs
|
|
{
|
|
|
|
/*! SQLite schema builder class. */
|
|
class SQLiteSchemaBuilder : public SchemaBuilder
|
|
{
|
|
Q_DISABLE_COPY(SQLiteSchemaBuilder)
|
|
|
|
public:
|
|
/*! Inherit constructors. */
|
|
using SchemaBuilder::SchemaBuilder;
|
|
|
|
/*! Virtual destructor. */
|
|
inline ~SQLiteSchemaBuilder() override = default;
|
|
};
|
|
|
|
} // namespace Orm::SchemaNs
|
|
|
|
TINYORM_END_COMMON_NAMESPACE
|
|
|
|
#endif // ORM_SCHEMA_SQLITESCHEMABUILDER_HPP
|