Skip to content

Commit bb4db7c

Browse files
rename internal options
1 parent 102d767 commit bb4db7c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,23 +211,23 @@ The internal queries that are ran before the queries in ```initSQLString``` are
211211

212212
The following options are only meant for internal debugging use. Their behaviour may change or they may get removed between major/minor/patch versions and they are not to be considered stable. The options below will not follow Semantic Versioning so it is advised to not use them.
213213

214-
- `deleteDBAfterStopped: boolean`
214+
- `_DO_NOT_USE_deleteDBAfterStopped: boolean`
215215

216216
Required: No
217217

218218
Default: true
219219

220220
Description: Changes whether or not the database will be deleted after it has been stopped. If set to `true`, the database WILL be deleted after it has been stopped.
221221

222-
- `dataPath: string`
222+
- `_DO_NOT_USE_dbPath: string`
223223

224224
Required: No
225225

226226
Default: `TMPDIR/mysqlmsn/dbs/UUID` (replacing TMPDIR with the OS temp directory and UUID with a UUIDv4 without seperating dashes).
227227

228228
Description: The folder to store database-related data in
229229

230-
- `binaryDirectoryPath: string`
230+
- `_DO_NOT_USE_binaryDirectoryPath: string`
231231

232232
Required: No
233233

tests/versions.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ for (const version of versions) {
2424
dbName: 'testingdata',
2525
username: username,
2626
logLevel: 'LOG',
27-
deleteDBAfterStopped: !process.env.useCIDBPath,
27+
_DO_NOT_USE_deleteDBAfterStopped: !process.env.useCIDBPath,
2828
ignoreUnsupportedSystemVersion: true,
2929
initSQLString: 'CREATE DATABASE mytestdb;'
3030
}
3131

3232
if (process.env.useCIDBPath) {
33-
options.dbPath = `${dbPath}/${randomUUID()}`
34-
options.binaryDirectoryPath = binaryPath
33+
options._DO_NOT_USE_dbPath = `${dbPath}/${randomUUID()}`
34+
options._DO_NOT_USE_binaryDirectoryPath = binaryPath
3535
}
3636

3737
const db = await createDB(options)

types/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ export type ServerOptions = {
1111
lockRetries?: number | undefined,
1212
lockRetryWait?: number | undefined,
1313
username?: string | undefined,
14-
deleteDBAfterStopped?: boolean | undefined,
15-
dbPath?: string | undefined,
1614
ignoreUnsupportedSystemVersion?: boolean | undefined,
1715
port?: number | undefined,
1816
xPort?: number | undefined,
19-
binaryDirectoryPath?: string | undefined,
2017
downloadRetries?: number | undefined,
2118
initSQLString?: string | undefined
19+
_DO_NOT_USE_deleteDBAfterStopped?: boolean | undefined,
20+
_DO_NOT_USE_dbPath?: string | undefined,
21+
_DO_NOT_USE_binaryDirectoryPath?: string | undefined
2222
}
2323

2424
export type InternalServerOptions = {

0 commit comments

Comments
 (0)