Skip to content

Commit

Permalink
docs: add missing getting-started docs for SQLServer (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-alfers authored Mar 25, 2024
1 parent e39f614 commit 12314ac
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/src/main/paradox/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ Postgres JSONB:
Yugabyte:
: @@snip [create_tables.sql](/ddl-scripts/create_tables_yugabyte.sql)
SQLServer:
: @@snip [create_tables.sql](/ddl-scripts/create_tables_sqlserver.sql)
The ddl script can be run in Docker with:
Postgres:
Expand All @@ -183,6 +186,11 @@ Yugabyte:
docker exec -i yb-tserver-n1 /home/yugabyte/bin/ysqlsh -h yb-tserver-n1 -t < ddl-scripts/create_tables_yugabyte.sql
```
SQLServer:
: ```
docker exec -i sqlserver-db /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P '<YourStrong@Passw0rd>' -d master < ddl-scripts/create_tables_sqlserver.sql
```

### Dropping the schema

Postgres:
Expand All @@ -191,6 +199,9 @@ Postgres:
Yugabyte:
: @@snip [drop_tables.sql](/ddl-scripts/drop_tables_postgres.sql)

SQLServer:
: @@snip [drop_tables.sql](/ddl-scripts/drop_tables_sqlserver.sql)

### Local testing in process with H2

H2 runs in the JVM process, either using a database directly in memory or in a local file. This means it requires no additional steps to start a database, it is started on first connection from the Akka Persistence R2DBC plugin.
Expand Down

0 comments on commit 12314ac

Please sign in to comment.