slite-change
Advanced tools
Comparing version 1.1.3-7 to 1.1.3-123f7da
{ | ||
"name": "slite-change", | ||
"version": "1.1.3-7", | ||
"version": "1.1.3-123f7da", | ||
"description": "A simple change management system for SQLite3 written in pure JavaScript/TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/slite-change.js", |
# slite-change | ||
A simple change management system for SQLite3 written in pure JavaScript/TypeScript. This is for on server programs like backend services or utilities. | ||
A simple change management system for SQLite3 written in pure JavaScript/TypeScript. This is for on server programs like backend services or utilities. | ||
@@ -23,3 +23,3 @@ ## Getting started | ||
Each change set file is read in order of directory listing. | ||
Each change set file is read in order of directory listing. | ||
Change ID values are integers. They must never repeat. They are applied in order as they are found with the changeset file. | ||
@@ -48,3 +48,3 @@ | ||
PRIMARY KEY ('parameter')); | ||
INSERT INTO 'config' ('parameter','value') VALUES ('db_version', '1'); | ||
@@ -54,4 +54,4 @@ COMMIT; | ||
Once a change set has been appled to a database, no more changes should be made to that ``change ID``, additional changes should be | ||
added to a new changeset file with the next value of ``change ID``. | ||
Once a change set has been appled to a database, no more changes should be made to that ``change ID``, additional changes should be | ||
added to a new changeset file with the next value of ``change ID``. | ||
@@ -76,3 +76,3 @@ Example changes can be found in [db-changes](https://gitlab.com/SiliconTao-open-source/slite-change/-/tree/main/db-changes) | ||
console.log('Error: {}', ReturnMsg); | ||
} | ||
} | ||
}); | ||
@@ -120,3 +120,3 @@ } | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to | ||
along with this program; if not, write to | ||
``` | ||
@@ -126,3 +126,3 @@ Free Software Foundation | ||
Boston, MA 02110 | ||
USA | ||
USA | ||
``` | ||
@@ -152,3 +152,3 @@ | ||
```bash | ||
npm run build | ||
tsc | ||
``` | ||
@@ -167,2 +167,8 @@ | ||
To publish a beta version for testing a branch in development. | ||
```bash | ||
np --any-branch $(cat package.json|jq --raw-output '.version' | cut -d\- -f1)-$(git rev-parse --short HEAD) --tag=beta | ||
``` | ||
Testing testing with Mocha. Installing gloabally because the library user will have their own tests. | ||
@@ -172,3 +178,3 @@ ``` | ||
npm install ts-mocha -g | ||
npm install --save-dev @types/mocha | ||
npm install --save-dev @types/mocha | ||
``` | ||
@@ -175,0 +181,0 @@ |
47715
183