add docs about new database modules

This commit is contained in:
Joel Wetzell
2026-09-05 16:50:36 -05:00
parent 4779d93f3e
commit f19bc17102
4 changed files with 1688 additions and 1570 deletions
+24
View File
@@ -0,0 +1,24 @@
---
title: MySQL
sidebar:
order: 1
---
import SchemaInfo from '../../../../components/SchemaInfo.astro';
The `db.mysql` module can open a connection to MySQL databases
<SchemaInfo type="module" id="db.mysql"></SchemaInfo>
This module implements the `DatabaseModule` interface.
### Example
Opens a connection to a MySQL database
```yaml
- id: myDatabase
type: db.mysql
params:
dsn: "user:password@tcp(localhost:3306)/mydatabase"
```
+24
View File
@@ -0,0 +1,24 @@
---
title: PostgreSQL
sidebar:
order: 1
---
import SchemaInfo from '../../../../components/SchemaInfo.astro';
The `db.postgres` module can open a connection to PostgreSQL databases
<SchemaInfo type="module" id="db.postgres"></SchemaInfo>
This module implements the `DatabaseModule` interface.
### Example
Opens a connection to a PostgreSQL database
```yaml
- id: myDatabase
type: db.postgres
params:
url: "postgresql://user:password@localhost:5432/mydatabase"
```