Please check if your PR fulfills the following requirements:
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Build (npm run build:check or yarn build:check) was run locally and any changes were pushed
[x] Lint (npm run lint or yarn lint) has passed locally and any fixes were made for failures
Pull request type
Please check the type of change your PR introduces:
[x] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):
What is the current behavior?
Currently, the last value storage plugins will get/save using the command. The issue is during pull requests or non-master branches, these runs would all get lumped into one pot. These runs need some way to be sandboxed from each other.
Issue Number: N/A
What is the new behavior?
I introduced a commandPrefix config for the mysql and sqlite plugins.This can be a string or an array of strings where it will use the first that does not have a missing variable replacement.
Does this introduce a breaking change?
[ ] Yes
[x] No
Other information
The regex for the variable replacement was greedy so had to make it non-greedy. I also then expanded it to optionally have a true and false values. The variable replacement can now take these values:
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build:check
oryarn build:check
) was run locally and any changes were pushednpm run lint
oryarn lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Currently, the last value storage plugins will get/save using the command. The issue is during pull requests or non-master branches, these runs would all get lumped into one pot. These runs need some way to be sandboxed from each other.
Issue Number: N/A
What is the new behavior?
I introduced a
commandPrefix
config for the mysql and sqlite plugins.This can be a string or an array of strings where it will use the first that does not have a missing variable replacement.Does this introduce a breaking change?
Other information
The regex for the variable replacement was greedy so had to make it non-greedy. I also then expanded it to optionally have a true and false values. The variable replacement can now take these values:
The
true
andfalse
will also be cast to proper booleans.