Files
TinyORM/include/orm/schema/sqliteschemabuilder.hpp
silverqx a2714be30e added schema builder 🔥🚀
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
2022-03-22 09:53:33 +01:00

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