Skip to content

Commit 66b8ec8

Browse files
committed
Updated readme
1 parent 2565bdf commit 66b8ec8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

demos/nodejs-mssql/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,17 @@ The frontend can be accessed at `http://localhost:3036` in a browser.
2626

2727
See [MSSQL Configuration](../../services/mssql/mssql.yaml) for the SQL server configuration
2828
The SQL server is initialized with the [init](../../services/mssql/init.sql) script.
29+
30+
The initialization script (`init.sql`) performs the following setup steps:
31+
32+
1. **Database Creation**: Creates the application database
33+
2. **CDC Setup**: Enables Change Data Capture at the database level
34+
3. **User Creation**: Creates a SQL Server login and database user with appropriate permissions
35+
4. **Create PowerSync Checkpoints table**: Creates the required `_powersync_checkpoints` table.
36+
5. **Self Host Demo Tables**: Creates the demo tables (`lists` and `todos`)
37+
6. **Enable Table CDC**: Enables CDC tracking on the demo tables
38+
7. **Permissions**: Grants `db_datareader` and `cdc_reader` roles to the application user
39+
8. **Sample Data**: Inserts initial test data into the `lists` table
40+
41+
All operations are idempotent, so they can safely be re-run without errors.
42+

0 commit comments

Comments
 (0)