mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-02-12 05:19:15 -06:00
docs updated MySQL documentation links to 8.1
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user