mirror of
https://github.com/silverqx/TinyORM.git
synced 2025-12-21 10:29:36 -06:00
docs changed all <a/> to <Link/>
To avoid the onBrokenAnchors warning. [skip ci]
This commit is contained in:
@@ -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 <kbd>Shift</kbd> + <kbd>p</kbd>
|
||||
|
||||
And paste the following code.
|
||||
|
||||
<a id='string-constants-example' />
|
||||
<Link id='string-constants-example' />
|
||||
|
||||
```cpp title='main.cpp'
|
||||
#include <orm/db.hpp>
|
||||
@@ -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.
|
||||
|
||||
<a id='folders-structure' />
|
||||
<Link id='folders-structure' />
|
||||
|
||||
```text
|
||||
tom/
|
||||
|
||||
@@ -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.
|
||||
:::
|
||||
|
||||
<a id='qtcreator-default-build-directory' />
|
||||
<Link id='qtcreator-default-build-directory' />
|
||||
|
||||
:::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.
|
||||
|
||||
<a id='tinyorm-on-path-cmake' />
|
||||
<Link id='tinyorm-on-path-cmake' />
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@@ -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({
|
||||
});
|
||||
```
|
||||
|
||||
<a id='multi-insert-overload' />
|
||||
<Link id='multi-insert-overload' />
|
||||
|
||||
You may insert several records at once by passing a `QVector<QString>` for column names as the first argument and `QVector<QVector<QVariant>>` for values as the second argument. Each `QVector<QVariant>` 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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
};
|
||||
```
|
||||
|
||||
<a id='timestamps-u_dates' />
|
||||
<Link id='timestamps-u_dates' />
|
||||
|
||||
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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user