docs changed using declarations order

This commit is contained in:
silverqx
2023-07-18 13:50:40 +02:00
parent 32f1570bb8
commit b246bca955
+8 -4
View File
@@ -175,10 +175,11 @@ You can create and configure a new database connection using the `create` method
#include <orm/utils/configuration.hpp>
using Orm::DB;
using namespace Orm::Constants; // NOLINT(google-build-using-namespace)
using ConfigUtils = Orm::Utils::Configuration;
using namespace Orm::Constants; // NOLINT(google-build-using-namespace)
// Ownership of a shared_ptr()
auto manager = DB::create({
{driver_, QMYSQL},
@@ -220,10 +221,11 @@ You can create and configure a new database connection using the `create` method
#include <orm/utils/configuration.hpp>
using Orm::DB;
using namespace Orm::Constants; // NOLINT(google-build-using-namespace)
using ConfigUtils = Orm::Utils::Configuration;
using namespace Orm::Constants; // NOLINT(google-build-using-namespace)
// Ownership of a shared_ptr()
auto manager = DB::create({
{driver_, QPSQL},
@@ -263,10 +265,11 @@ You can create and configure a new database connection using the `create` method
#include <orm/utils/configuration.hpp>
using Orm::DB;
using namespace Orm::Constants; // NOLINT(google-build-using-namespace)
using ConfigUtils = Orm::Utils::Configuration;
using namespace Orm::Constants; // NOLINT(google-build-using-namespace)
// Ownership of a shared_ptr()
auto manager = DB::create({
{driver_, QSQLITE},
@@ -291,10 +294,11 @@ You can create and configure a new database connection using the `create` method
#include <orm/utils/configuration.hpp>
using Orm::DB;
using namespace Orm::Constants; // NOLINT(google-build-using-namespace)
using ConfigUtils = Orm::Utils::Configuration;
using namespace Orm::Constants; // NOLINT(google-build-using-namespace)
// Ownership of a shared_ptr()
auto manager = DB::create({
{driver_, QMYSQL},