From b40b016842ce25dccb3e7e86558dcc8c265686ce Mon Sep 17 00:00:00 2001 From: silverqx Date: Mon, 6 May 2024 20:04:19 +0200 Subject: [PATCH] docs changed all to To avoid the onBrokenAnchors warning. [skip ci] --- docs/building/migrations.mdx | 6 ++++-- docs/building/tinyorm.mdx | 6 ++++-- docs/database/query-builder.mdx | 4 +++- docs/tinyorm/getting-started.mdx | 4 +++- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/building/migrations.mdx b/docs/building/migrations.mdx index 6ed5149ee..33446a0ac 100644 --- a/docs/building/migrations.mdx +++ b/docs/building/migrations.mdx @@ -5,6 +5,8 @@ description: How to compile the TinyORM migrations (tom) C++ console application keywords: [c++ orm, building, migrations, tinyorm] --- +import Link from '@docusaurus/Link' + import CodeBlock from '@theme/CodeBlock' import TabItem from '@theme/TabItem' import Tabs from '@theme/Tabs' @@ -160,7 +162,7 @@ To paste a source code correctly in `vim`, press Shift + p And paste the following code. - + ```cpp title='main.cpp' #include @@ -242,7 +244,7 @@ tom make:migration create_posts_table Below is the expected folders structure for the migrations. The [`migrations.pri`](#migrations-source-files) file is used only by the `qmake` build system and is not needed with `CMake` builds. - + ```text tom/ diff --git a/docs/building/tinyorm.mdx b/docs/building/tinyorm.mdx index 69130640e..9e8b76f44 100644 --- a/docs/building/tinyorm.mdx +++ b/docs/building/tinyorm.mdx @@ -6,6 +6,8 @@ description: How to compile the TinyORM C++ library on Windows and Linux. keywords: [c++ orm, building, tinyorm] --- +import Link from '@docusaurus/Link' + import APITable from '@theme/APITable' import CodeBlock from '@theme/CodeBlock' import TabItem from '@theme/TabItem' @@ -256,7 +258,7 @@ You can set the root and application folder paths in the form below and they wil Avoid paths with spaces with the `qmake` build system, it will not compile. ::: - + :::tip You can force the `QtCreator` to generate a build folders structure as is described above. @@ -595,7 +597,7 @@ list(APPEND CMAKE_PREFIX_PATH "${convertToCmakeEnvVariable(bash, rootFolderPath( Or as an alternative, you can set `CMAKE_PREFIX_PATH` environment variable. - + As the last thing, do not forget to add `TinyOrm0d.dll` on the path on Windows and on the `LD_LIBRARY_PATH` on Linux, so your application can find it during execution. diff --git a/docs/database/query-builder.mdx b/docs/database/query-builder.mdx index dbbcc7634..c3e7719d1 100644 --- a/docs/database/query-builder.mdx +++ b/docs/database/query-builder.mdx @@ -5,6 +5,8 @@ description: TinyORM's database query builder provides a convenient, fluent inte keywords: [c++ orm, sql, c++ sql, c++ query builder, database, query builder, tinyorm] --- +import Link from '@docusaurus/Link' + # Database: Query Builder - [Introduction](#introduction) @@ -952,7 +954,7 @@ DB::table("users")->insert({ }); ``` - + You may insert several records at once by passing a `QVector` for column names as the first argument and `QVector>` for values as the second argument. Each `QVector` represents a record that should be inserted into the table. This overload is useful for multi-insert and allows to specify column names only once: diff --git a/docs/tinyorm/getting-started.mdx b/docs/tinyorm/getting-started.mdx index e760398a9..c9ff222a3 100644 --- a/docs/tinyorm/getting-started.mdx +++ b/docs/tinyorm/getting-started.mdx @@ -5,6 +5,8 @@ description: TinyORM is an object-relational mapper (ORM) that makes it enjoyabl keywords: [c++ orm, orm, getting started, tinyorm] --- +import Link from '@docusaurus/Link' + # TinyORM: Getting Started - [Introduction](#introduction) @@ -221,7 +223,7 @@ private: }; ``` - + The `u_dates` static data member controls the casting of timestamp attributes. The `created_at` and `updated_at` columns are automatically added to the `u_dates` string list when the `u_timestamps` is `true`. Also, the [`Soft Deleting`](#soft-deleting) feature adds the `deleted_at` column to the `u_dates`.