mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-01-10 12:59:42 -06:00
removed using aliases (used using declaration)
- added/updated comments
This commit is contained in:
@@ -28,8 +28,8 @@ namespace Orm::Tiny
|
||||
template<typename Derived>
|
||||
class SoftDeletes;
|
||||
|
||||
/*! Alias for the GuardedModel. */
|
||||
using GuardedModel = Concerns::GuardedModel; // Don't remove
|
||||
/*! Alias for the Concerns::GuardedModel, shortcut alias. */
|
||||
using Concerns::GuardedModel; // Don't remove // NOLINT(misc-unused-using-decls)
|
||||
|
||||
// TODO model missing methods Model::loadMissing() silverqx
|
||||
// TODO model missing saveOrFail(), updateOrFail(), deleteOrFail(), I will need to implement ManagesTransaction::transaction(callback) method silverqx
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace Tiny::Relations
|
||||
|
||||
} // namespace Tiny::Relations
|
||||
|
||||
/*! Alias for the Pivot, shortcut alias. */
|
||||
using Pivot = Tiny::Relations::Pivot;
|
||||
/*! Alias for the Relations::Pivot, shortcut alias. */
|
||||
using Tiny::Relations::Pivot; // NOLINT(misc-unused-using-decls)
|
||||
|
||||
} // namespace Orm
|
||||
|
||||
|
||||
@@ -210,8 +210,8 @@ namespace Concerns
|
||||
} // namespace Concerns
|
||||
} // namespace Tiny
|
||||
|
||||
/*! Alias for the Orm::Tiny::One, shortcut alias. */
|
||||
using One = Tiny::One;
|
||||
/*! Alias for the Tiny::One, shortcut alias. */
|
||||
using Tiny::One; // NOLINT(misc-unused-using-decls)
|
||||
|
||||
} // namespace Orm
|
||||
|
||||
|
||||
@@ -35,7 +35,8 @@ namespace Types
|
||||
|
||||
} // namespace Types
|
||||
|
||||
using ConnectionOverride = Tiny::Types::ConnectionOverride;
|
||||
/*! Alias for the Types::ConnectionOverride, shortcut alias. */
|
||||
using Tiny::Types::ConnectionOverride; // NOLINT(misc-unused-using-decls)
|
||||
|
||||
} // namespace Orm::Tiny
|
||||
|
||||
|
||||
@@ -67,8 +67,8 @@ namespace Types
|
||||
|
||||
} // namespace Types
|
||||
|
||||
/*! Alias for the ModelAttributes. */
|
||||
using ModelAttributes = Tiny::Types::ModelAttributes;
|
||||
/*! Alias for the Types::ModelAttributes, shortcut alias. */
|
||||
using Tiny::Types::ModelAttributes; // NOLINT(misc-unused-using-decls)
|
||||
|
||||
} // namespace Orm::Tiny
|
||||
|
||||
|
||||
@@ -406,8 +406,8 @@ namespace Types
|
||||
|
||||
} // namespace Types
|
||||
|
||||
/*! Alias for the SyncChanges. */
|
||||
using SyncChanges = Tiny::Types::SyncChanges;
|
||||
/*! Alias for the Types::SyncChanges, shortcut alias. */
|
||||
using Tiny::Types::SyncChanges; // NOLINT(misc-unused-using-decls)
|
||||
|
||||
} // namespace Tiny
|
||||
} // namespace Orm
|
||||
|
||||
@@ -45,7 +45,8 @@ namespace Types
|
||||
|
||||
} // namespace Types
|
||||
|
||||
using Log = Types::Log;
|
||||
/*! Alias for the Types::Log, shortcut alias. */
|
||||
using Types::Log; // NOLINT(misc-unused-using-decls)
|
||||
|
||||
} // namespace Orm
|
||||
|
||||
|
||||
@@ -98,7 +98,8 @@ namespace Types
|
||||
|
||||
} // namespace Types
|
||||
|
||||
using SqlQuery = Types::SqlQuery;
|
||||
/*! Alias for the Types::SqlQuery, shortcut alias. */
|
||||
using Types::SqlQuery; // NOLINT(misc-unused-using-decls)
|
||||
|
||||
} // namespace Orm
|
||||
|
||||
|
||||
@@ -28,7 +28,8 @@ namespace Types
|
||||
|
||||
} // namespace Types
|
||||
|
||||
using StatementsCounter = Types::StatementsCounter;
|
||||
/*! Alias for the Types::StatementsCounter, shortcut alias. */
|
||||
using Types::StatementsCounter; // NOLINT(misc-unused-using-decls)
|
||||
|
||||
} // namespace Orm
|
||||
|
||||
|
||||
@@ -971,7 +971,7 @@ void DatabaseManager::registerQMetaTypesForQt5()
|
||||
QMetaType::registerEqualsComparator<QVector<QVariantMap>>();
|
||||
|
||||
#ifndef TINYORM_DISABLE_ORM
|
||||
using AttributeItem = Tiny::AttributeItem;
|
||||
using Tiny::AttributeItem;
|
||||
|
||||
if (!QMetaType::hasRegisteredComparators<AttributeItem>())
|
||||
QMetaType::registerEqualsComparator<AttributeItem>();
|
||||
|
||||
@@ -54,7 +54,7 @@ void SQLiteSchemaBuilder::dropAllTables() const
|
||||
if (m_connection->getDatabaseName() != in_memory)
|
||||
return refreshDatabaseFile(); // clazy:exclude=returning-void-expression
|
||||
|
||||
using SQLiteSchemaGrammar = Grammars::SQLiteSchemaGrammar;
|
||||
using Grammars::SQLiteSchemaGrammar;
|
||||
|
||||
m_connection->selectFromWriteConnection(SQLiteSchemaGrammar::
|
||||
compileEnableWriteableSchema());
|
||||
@@ -69,7 +69,7 @@ void SQLiteSchemaBuilder::dropAllTables() const
|
||||
|
||||
void SQLiteSchemaBuilder::dropAllViews() const
|
||||
{
|
||||
using SQLiteSchemaGrammar = Grammars::SQLiteSchemaGrammar;
|
||||
using Grammars::SQLiteSchemaGrammar;
|
||||
|
||||
m_connection->selectFromWriteConnection(SQLiteSchemaGrammar::
|
||||
compileEnableWriteableSchema());
|
||||
|
||||
@@ -15,7 +15,8 @@ using Orm::Constants::Progress;
|
||||
using Orm::Constants::SIZE_;
|
||||
using Orm::Constants::UPDATED_AT;
|
||||
|
||||
using NullVariant = Orm::Utils::NullVariant;
|
||||
using Orm::Utils::NullVariant;
|
||||
|
||||
using TypeUtils = Orm::Utils::Type;
|
||||
|
||||
using Orm::Tiny::AttributeItem;
|
||||
|
||||
@@ -16,7 +16,8 @@ using Orm::Constants::Progress;
|
||||
using Orm::Constants::SIZE_;
|
||||
using Orm::Constants::UPDATED_AT;
|
||||
|
||||
using NullVariant = Orm::Utils::NullVariant;
|
||||
using Orm::Utils::NullVariant;
|
||||
|
||||
using TypeUtils = Orm::Utils::Type;
|
||||
|
||||
using Orm::Tiny::AttributeItem;
|
||||
|
||||
@@ -22,7 +22,8 @@ using Orm::Constants::pivot_;
|
||||
|
||||
using Orm::Utils::Helpers;
|
||||
|
||||
using NullVariant = Orm::Utils::NullVariant;
|
||||
using Orm::Utils::NullVariant;
|
||||
|
||||
using TypeUtils = Orm::Utils::Type;
|
||||
|
||||
using Orm::Tiny::AttributeItem;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Types
|
||||
{
|
||||
struct Log;
|
||||
}
|
||||
using Log = Orm::Types::Log;
|
||||
using Orm::Types::Log;
|
||||
|
||||
class DatabaseConnection;
|
||||
} // namespace Orm
|
||||
|
||||
Reference in New Issue
Block a user