mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-09-07 21:28:59 +00:00
add docs about new database modules
This commit is contained in:
@@ -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"
|
||||||
|
```
|
||||||
@@ -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"
|
||||||
|
```
|
||||||
+597
-527
File diff suppressed because it is too large
Load Diff
+1043
-1043
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user