From e7f845a6cd26ec79d4d9d69edbc7d39e2381c40d Mon Sep 17 00:00:00 2001 From: silverqx Date: Fri, 27 Jan 2023 14:23:21 +0100 Subject: [PATCH] docs unified links to Qt's documentation Used the /qt/ instead of specific versions, eg. /qt-5/xyz. --- docs/database/getting-started.mdx | 4 ++-- docs/tinyorm/getting-started.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/database/getting-started.mdx b/docs/database/getting-started.mdx index 433d50e5c..0bb145d76 100644 --- a/docs/database/getting-started.mdx +++ b/docs/database/getting-started.mdx @@ -33,7 +33,7 @@ Almost every modern application interacts with a database. TinyORM makes interac - PostgreSQL 11+ ([Version Policy](https://www.postgresql.org/support/versioning/)) - SQLite 3.8.8+ -TinyORM internally uses `QtSql` module, you can look for [supported databases](https://doc.qt.io/qt-5/sql-driver.html#supported-databases). +TinyORM internally uses `QtSql` module, you can look for [supported databases](https://doc.qt.io/qt/sql-driver.html#supported-databases). :::note TinyORM's code is ready and designed to simply add support for the SQL Server. @@ -69,7 +69,7 @@ You can create and configure new database connection by `create` method provided The first argument is configuration hash which is of type `QVariantHash` and the second argument specifies the name of the *connection*, this connection will also be a *default connection*. You can configure multiple database connections at once and choose the needed one before executing SQL query, section [Using Multiple Database Connections](#using-multiple-database-connections) describes how to create and use multiple database connections. -You may also configure connection options by `options` key as `QVariantHash` or `QString`, you can pass any [connection options](https://doc.qt.io/qt-5/qsqldatabase.html#setConnectOptions) supported by `QSqlDatabase`. +You may also configure connection options by `options` key as `QVariantHash` or `QString`, you can pass any [connection options](https://doc.qt.io/qt/qsqldatabase.html#setConnectOptions) supported by `QSqlDatabase`. You can also configure [Transaction Isolation Levels](https://dev.mysql.com/doc/refman/8.0/en/innodb-transaction-isolation-levels.html) for MySQL connection with the `isolation_level` configuration option. diff --git a/docs/tinyorm/getting-started.mdx b/docs/tinyorm/getting-started.mdx index ad2abf56c..3e21bc3e8 100644 --- a/docs/tinyorm/getting-started.mdx +++ b/docs/tinyorm/getting-started.mdx @@ -404,7 +404,7 @@ The `refresh` method will re-hydrate the existing model using fresh data from th ### Containers -As we have seen, TinyORM methods like `all` and `get` retrieve multiple records from the database. Since these methods return a `QVector`, you can iterate it like any other container with the [Range-based for loop](https://en.cppreference.com/w/cpp/language/range-for), [STL-Style Iterators](https://doc.qt.io/qt-5/containers.html#stl-style-iterators), [Java-Style Iterators](https://doc.qt.io/qt-5/containers.html#java-style-iterators) or [Ranges](https://www.walletfox.com/course/quickref_range_v3.php). +As we have seen, TinyORM methods like `all` and `get` retrieve multiple records from the database. Since these methods return a `QVector`, you can iterate it like any other container with the [Range-based for loop](https://en.cppreference.com/w/cpp/language/range-for), [STL-Style Iterators](https://doc.qt.io/qt/containers.html#stl-style-iterators), [Java-Style Iterators](https://doc.qt.io/qt/containers.html#java-style-iterators) or [Ranges](https://www.walletfox.com/course/quickref_range_v3.php). #include