docs added admonitions to Hello world applications

This commit is contained in:
silverqx
2024-09-15 15:03:31 +02:00
parent 1ae397b972
commit 476530f03d
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -68,6 +68,14 @@ cd HelloWorld`}
</TabItem>
</Tabs>
:::info
Here is the finished [Hello world example](https://github.com/silverqx/TinyORM-HelloWorld?tab=readme-ov-file#hello-world-example-for-tinyorm) application that does two simple queries against the `SQLite` database. The first query uses the QueryBuilder and the second one uses the ORM (Post model).
:::
:::info
Here is another finished [Hello world example](https://github.com/silverqx/TinyORM-HelloWorld-TinyDrivers?tab=readme-ov-file#hello-world-example-for-tinyorm) application that does two simple queries against the `MySQL` database. This Hello world application was created to test our [TinyDrivers](tinydrivers/getting-started.mdx).
:::
## Prepare SQLite 3 database
The easiest way to demonstrate the `HelloWorld` example will be with a `SQLite 3` database.
+4
View File
@@ -74,6 +74,10 @@ cd tom`}
All these three console applications the `tom` example, `tom` migrations for unit tests, and the application described in this tutorial have practically identical source code (the main.cpp file).
:::info
Here is the finished [Tom example application](https://github.com/silverqx/TinyORM-tom?tab=readme-ov-file#tom-example-for-tinyorm) with a few migrations and seeders.
:::
:::note
The `tom` is able to generate <a href='https://en.wikipedia.org/wiki/Data_definition_language' title='Data Definition Language'>DDL</a> queries for all the [supported databases](database/getting-started.mdx#introduction).
:::