ezobjects
Advanced tools
Comparing version 2.2.1 to 2.3.0
const docket = require('docket-parser'); | ||
docket.title(`EZ Objects v2.2.1`); | ||
docket.title(`EZ Objects v2.3.0`); | ||
docket.linkClass('text-success'); | ||
docket.parseFiles(['index.js', 'mysql-connection.js']); | ||
docket.generateDocs('docs'); |
@@ -88,4 +88,4 @@ const mysqlConnection = require('./mysql-connection'); | ||
/** Properties with DEFAULT */ | ||
if ( property.default ) | ||
createQuery += ` DEFAULT ${property.default}`; | ||
if ( property.mysqlDefault ) | ||
createQuery += ` DEFAULT ${property.mysqlDefault}`; | ||
@@ -92,0 +92,0 @@ /** Properties with AUTO_INCREMENT */ |
{ | ||
"name": "ezobjects", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "Easy dynamic object generation with strict typing and set chaining", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# EZ Objects v2.2.1 | ||
# EZ Objects v2.3.0 | ||
@@ -42,3 +42,2 @@ EZ Objects is a Node.js module (that can also be usefully browserify'd) that aims to save you lots of time | ||
* Load external MySQL configuration which uses the following JSON format: | ||
* | ||
* { | ||
@@ -315,3 +314,4 @@ * "host" : "localhost", | ||
* null - boolean - (optional) Indicates the property can be NULL [default is properties must be NOT NULL] | ||
* default - mixed - (optional) Sets the default value for the property in the MySQL table, assuming its of the correct type | ||
* default - mixed - (optional) Sets the default value for the property in the class object | ||
* mysqlDefault - mixed - (optional) Sets the default value for the property in the MySQL table, assuming its of the correct type | ||
* unsigned - boolean - (optional) Indicates the property should be unsigned in the MySQL table | ||
@@ -318,0 +318,0 @@ * zerofill - boolean - (optional) Indicates the property should be zero-filled in the MySQL table |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
372195