Skip to content

Commit

Permalink
fixed container utils alias
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Nov 12, 2022
1 parent fdb1c4c commit c593226
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion include/orm/basegrammar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ namespace Query
Q_DISABLE_COPY(BaseGrammar)

protected:
/*! Alias for the container utils. */
using ContainerUtils = Orm::Utils::Container;
/*! Alias for the Expression. */
using Expression = Query::Expression;

Expand Down Expand Up @@ -131,7 +133,7 @@ namespace Query
template<ColumnContainer T>
QString BaseGrammar::columnizeWithoutWrap(T &&columns) const
{
return Utils::Container::join(std::forward<T>(columns));
return ContainerUtils::join(std::forward<T>(columns));
}

QString BaseGrammar::getTablePrefix() const
Expand Down
4 changes: 3 additions & 1 deletion src/orm/schema/blueprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

TINYORM_BEGIN_COMMON_NAMESPACE

using ContainerUtils = Orm::Utils::Container;

namespace Orm::SchemaNs
{

Expand Down Expand Up @@ -741,7 +743,7 @@ Blueprint::createIndexName(const QString &type, const QVector<QString> &columns)
{
auto index = QStringLiteral("%1_%2_%3")
.arg(NOSPACE.arg(m_prefix, m_table),
Utils::Container::join(columns, UNDERSCORE),
ContainerUtils::join(columns, UNDERSCORE),
type)
.toLower();

Expand Down
2 changes: 0 additions & 2 deletions src/orm/schema/grammars/postgresschemagrammar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

TINYORM_BEGIN_COMMON_NAMESPACE

using ContainerUtils = Orm::Utils::Container;

namespace Orm::SchemaNs::Grammars
{

Expand Down

0 comments on commit c593226

Please sign in to comment.