Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ node_modules
!.env*.example
build
examples/diagram-generator/libs/rappid.*
package-lock.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ npm run example-cli -- ./test/department_employees.quicksql
The Quick SQL to DDL translator is the product's core component, It allows users
to transform a Quick SQL string into an Oracle SQL string.

The Quick SQL Syntax and Grammar are documented [here](./doc/quick-sql-grammar.md)
The Quick SQL Syntax and Grammar are documented [here](./doc/user/quick-sql-grammar.md)

See below for examples of how to use this library.

Expand Down Expand Up @@ -160,7 +160,7 @@ view emp_v departments employees

## Transforming Quick SQL into an Entity-Relationship Diagram (ERD)

Requires a paid library. Review the usage [here](./doc/quick-erd.md)
Requires a paid library. Review the usage [here](./doc/user/quick-erd.md)

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion dist/quick-erd.js
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ class de {
e.rearrangeDiagram(3, !1), this.paperScroller.centerContent();
}
}
const ue = "1.1.2", fe = {
const ue = "1.1.3", fe = {
Diagram: de,
version: ue
};
Expand Down
2 changes: 1 addition & 1 deletion dist/quick-erd.umd.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/quick-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -8992,7 +8992,7 @@ const Y = {
};
return Object.defineProperty(D, "version", {
writable: !1,
value: "1.1.2"
value: "1.1.3"
}), D;
}(), be = X.toDDL, pe = X.toERD, ge = X.toQSQL, Ce = X.errors, ve = X.version;
export {
Expand Down
2 changes: 1 addition & 1 deletion dist/quick-sql.umd.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@ dv `+D+"_dv "+D,A+=`
Non-default options:
# settings = `+JSON.stringify(this.nonDefaultOptions())+`
`,S+=`
*/`,this.appliedOptions=JSON.parse(JSON.stringify(this.options)),this.resetOptions(),S},this.errors=function(y,p){this.toDDL(y,p),this.options=JSON.parse(JSON.stringify(this.appliedOptions));const S=be.findErrors(this,y);return this.appliedOptions=JSON.parse(JSON.stringify(this.options)),this.resetOptions(),S},this.toQSQL=function(y){const p=JSON.parse(y);return me.introspect(null,p,0)},this.descendants=function(){for(var y=[],p=0;p<this.forest.length;p++)y=y.concat(this.forest[p].descendants());return y},this.additionalColumns=function(){var y=[],p=this.getOptionValue("Auxiliary Columns");if(p==null)return y;for(var S=p.split(","),T=0;T<S.length;T++){var A=S[T].trim(),k="VARCHAR2(4000)",b=A.indexOf(" ");0<b&&(k=A.substring(b+1).toUpperCase(),A=A.substring(0,b)),y[A]=k}return y},this.objPrefix=function(y){var p=this.getOptionValue("schema");p==null&&(p=""),p!=""&&y==null?p=p+".":p="";var S="";return this.getOptionValue("prefix")!=null&&(S=this.getOptionValue("prefix")),p=p+S,S!=""&&(p=p+"_"),p.toLowerCase()}}const f=new m;let D={toDDL:f.toDDL.bind(f),toERD:f.toERD.bind(f),toQSQL:f.toQSQL.bind(f),errorMsgs:f.errors.bind(f)};return Object.defineProperty(D,"version",{writable:!1,value:"1.1.2"}),D}(),pe=X.toDDL,ge=X.toERD,Ce=X.toQSQL,ve=X.errors,Ae=X.version;K.default=X,K.errors=ve,K.toDDL=pe,K.toERD=ge,K.toQSQL=Ce,K.version=Ae,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
*/`,this.appliedOptions=JSON.parse(JSON.stringify(this.options)),this.resetOptions(),S},this.errors=function(y,p){this.toDDL(y,p),this.options=JSON.parse(JSON.stringify(this.appliedOptions));const S=be.findErrors(this,y);return this.appliedOptions=JSON.parse(JSON.stringify(this.options)),this.resetOptions(),S},this.toQSQL=function(y){const p=JSON.parse(y);return me.introspect(null,p,0)},this.descendants=function(){for(var y=[],p=0;p<this.forest.length;p++)y=y.concat(this.forest[p].descendants());return y},this.additionalColumns=function(){var y=[],p=this.getOptionValue("Auxiliary Columns");if(p==null)return y;for(var S=p.split(","),T=0;T<S.length;T++){var A=S[T].trim(),k="VARCHAR2(4000)",b=A.indexOf(" ");0<b&&(k=A.substring(b+1).toUpperCase(),A=A.substring(0,b)),y[A]=k}return y},this.objPrefix=function(y){var p=this.getOptionValue("schema");p==null&&(p=""),p!=""&&y==null?p=p+".":p="";var S="";return this.getOptionValue("prefix")!=null&&(S=this.getOptionValue("prefix")),p=p+S,S!=""&&(p=p+"_"),p.toLowerCase()}}const f=new m;let D={toDDL:f.toDDL.bind(f),toERD:f.toERD.bind(f),toQSQL:f.toQSQL.bind(f),errorMsgs:f.errors.bind(f)};return Object.defineProperty(D,"version",{writable:!1,value:"1.1.3"}),D}(),pe=X.toDDL,ge=X.toERD,Ce=X.toQSQL,ve=X.errors,Ae=X.version;K.default=X,K.errors=ve,K.toDDL=pe,K.toERD=ge,K.toQSQL=Ce,K.version=Ae,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
28 changes: 28 additions & 0 deletions doc/development/NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Notes

## Version Bumps

As per Semantic Versioning, only changes to the `src` folder require a version
bump. Fixes will bump the patch version, features, will bump the minor version
and braking changes with the previous API will bump the major version.

Bumping the version of the library should only happen via NPM by executing one
of the following commands at the root of the project:

```bash
npm version patch --no-git-tag-version
```

```bash
npm version minor --no-git-tag-version
```

```bash
npm version major --no-git-tag-version
```

Doing this will trigger a re-build of the application using the `postversion`
script in the `package.json`.

Changes to other folders or files that do not affect the library's functionality
should not bump the version of it.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading