diff --git a/docs/database/getting-started.mdx b/docs/database/getting-started.mdx index 335ad5c48..8552a40c8 100644 --- a/docs/database/getting-started.mdx +++ b/docs/database/getting-started.mdx @@ -341,7 +341,7 @@ The first argument is configuration hash which is of type `QVariantHash` and the 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. +You can also configure [Transaction Isolation Levels](https://dev.mysql.com/doc/refman/8.1/en/innodb-transaction-isolation-levels.html) for MySQL connection with the `isolation_level` configuration option. The `version` option is relevant only for the MySQL connections and you can save/avoid one database query (select version()) if you provide it manually. On the base of this version will be decided which [session variables](https://github.com/silverqx/TinyORM/blob/main/src/orm/connectors/mysqlconnector.cpp#L154) will be set if strict mode is enabled and whether to use an [alias](https://github.com/silverqx/TinyORM/blob/main/src/orm/query/grammars/mysqlgrammar.cpp#L36) during the `upsert` method call. @@ -731,11 +731,11 @@ Since unprepared statements do not bind parameters, they may be vulnerable to SQ #### Implicit Commits -When using the `DB` facade's `statement` methods within transactions, you must be careful to avoid statements that cause [implicit commits](https://dev.mysql.com/doc/refman/8.0/en/implicit-commit.html). These statements will cause the database engine to indirectly commit the entire transaction, leaving TinyORM unaware of the database's transaction level. An example of such a statement is creating a database table: +When using the `DB` facade's `statement` methods within transactions, you must be careful to avoid statements that cause [implicit commits](https://dev.mysql.com/doc/refman/8.1/en/implicit-commit.html). These statements will cause the database engine to indirectly commit the entire transaction, leaving TinyORM unaware of the database's transaction level. An example of such a statement is creating a database table: DB::statement("create table users (name varchar(255) null)"); -Please refer to the MySQL manual for [a list of all statements](https://dev.mysql.com/doc/refman/8.0/en/implicit-commit.html) that trigger implicit commits. +Please refer to the MySQL manual for [a list of all statements](https://dev.mysql.com/doc/refman/8.1/en/implicit-commit.html) that trigger implicit commits. ### Using Multiple Database Connections diff --git a/docs/database/query-builder.mdx b/docs/database/query-builder.mdx index d108dbc97..7d7558ce3 100644 --- a/docs/database/query-builder.mdx +++ b/docs/database/query-builder.mdx @@ -859,7 +859,7 @@ All databases except SQL Server require the columns in the second argument of th ::: :::info -Row and column aliases will be used with the MySQL server >=8.0.19 instead of the VALUES() function as is described in the MySQL [documentation](https://dev.mysql.com/doc/refman/8.0/en/insert-on-duplicate.html). The MySQL server version is auto-detected and can be overridden in the [configuration](/database/getting-started.mdx#configuration). +Row and column aliases will be used with the MySQL server >=8.0.19 instead of the VALUES() function as is described in the MySQL [documentation](https://dev.mysql.com/doc/refman/8.1/en/insert-on-duplicate.html). The MySQL server version is auto-detected and can be overridden in the [configuration](/database/getting-started.mdx#configuration). ::: ## Update Statements diff --git a/docs/dependencies.mdx b/docs/dependencies.mdx index f24901f8c..cc2991350 100644 --- a/docs/dependencies.mdx +++ b/docs/dependencies.mdx @@ -25,7 +25,7 @@ Be aware that the standard support for the last release of the __Qt 5__ series e ##### Optional -- [MySQL Connector/C 8](https://dev.mysql.com/downloads/c-api/) - used only for the [`mysql_ping`](https://dev.mysql.com/doc/c-api/8.0/en/mysql-ping.html) function and provided by [MySQL 8 Server](https://dev.mysql.com/downloads/mysql/) +- [MySQL Connector/C 8](https://dev.mysql.com/downloads/c-api/) - used only for the [`mysql_ping`](https://dev.mysql.com/doc/c-api/8.1/en/mysql-ping.html) function and provided by [MySQL 8 Server](https://dev.mysql.com/downloads/mysql/) :::info The `TinyORM` will support `Qt` versions that aren't [end-of-life](https://endoflife.date/qt). diff --git a/docs/tinyorm/getting-started.mdx b/docs/tinyorm/getting-started.mdx index 124d48966..94ad38a9a 100644 --- a/docs/tinyorm/getting-started.mdx +++ b/docs/tinyorm/getting-started.mdx @@ -744,7 +744,7 @@ All databases except SQL Server require the columns in the second argument of th ::: :::info -Row and column aliases will be used with the MySQL server >=8.0.19 instead of the VALUES() function as is described in the MySQL [documentation](https://dev.mysql.com/doc/refman/8.0/en/insert-on-duplicate.html). The MySQL server version is auto-detected and can be overridden in the [configuration](/database/getting-started.mdx#configuration). +Row and column aliases will be used with the MySQL server >=8.0.19 instead of the VALUES() function as is described in the MySQL [documentation](https://dev.mysql.com/doc/refman/8.1/en/insert-on-duplicate.html). The MySQL server version is auto-detected and can be overridden in the [configuration](/database/getting-started.mdx#configuration). ::: ## Deleting Models