Skip to content

Commit 94f4447

Browse files
committed
add mysql sections
1 parent 2420bc1 commit 94f4447

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

Examples/ConfigurationFile/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ SqlDatabase ... -configuration=path\to\sql-database.config
2121
<assemblyScript className="SqlDatabaseScript"
2222
methodName="Execute" />
2323

24-
<!-- variables applicable for mssql and pgsql -->
24+
<!-- global variables, by default the list is empty -->
2525
<variables>
2626
<add name="Variable1"
2727
value="value1" />
@@ -89,6 +89,12 @@ Default value for PostgreSQL (sqlDatabase/pgsql/@getCurrentVersion):
8989
SELECT version FROM public.version WHERE module_name = 'database'
9090
```
9191

92+
Default value for MySQL (sqlDatabase/mysql/@getCurrentVersion):
93+
94+
```sql
95+
SELECT version FROM version WHERE module_name = 'database'
96+
```
97+
9298
Warn: SqlDatabase does not validate the provided script, please make sure that script is working before running SqlDatabase.
9399

94100
## setCurrentVersion
@@ -107,6 +113,12 @@ Default value for PostgreSQL (sqlDatabase/pgsql/@setCurrentVersion):
107113
UPDATE public.version SET version='{{TargetVersion}}' WHERE module_name = 'database'
108114
```
109115

116+
Default value for MySQL (sqlDatabase/mysql/@setCurrentVersion):
117+
118+
```sql
119+
UPDATE version SET version='{{TargetVersion}}' WHERE module_name = 'database'
120+
```
121+
110122
Warn: SqlDatabase does not validate the provided script, please make sure that script is working before running SqlDatabase.
111123

112124
## assemblyScript
@@ -146,6 +158,7 @@ sections
146158
* sqlDatabase/variables
147159
* sqlDatabase/mssql/variables
148160
* sqlDatabase/pgsql/variables
161+
* sqlDatabase/mysql/variables
149162

150163
A list of variables in format
151164

Examples/ConfigurationFile/SqlDatabase.dll.config

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
<assemblyScript className="SqlDatabaseScript"
1212
methodName="Execute" />
1313

14-
<!--
15-
variables applicable for mssql and pgsql
16-
by defult is empty
17-
-->
14+
<!-- global variables, by default the list is empty -->
1815
<variables>
1916
<add name="GlobalVariable1"
2017
value="value1" />

0 commit comments

Comments
 (0)