mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-07 17:19:37 -05:00
docs added admonitions to Hello world applications
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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).
|
||||
:::
|
||||
|
||||
Reference in New Issue
Block a user