node-json-database
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -479,2 +479,5 @@ "use strict"; | ||
} | ||
if (file.tables == undefined) { | ||
file.tables = {}; | ||
} | ||
file.tables[tableName] = { cols: [], rows: [] }; | ||
@@ -481,0 +484,0 @@ writeDBFile(); |
@@ -26,2 +26,5 @@ import * as fs from 'fs' | ||
default?: any | ||
data?: { | ||
[key: string]: any | ||
} | ||
} | ||
@@ -501,2 +504,6 @@ | ||
if (file.tables == undefined) { | ||
file.tables = {} | ||
} | ||
file.tables[tableName] = { cols: [], rows: [] } | ||
@@ -503,0 +510,0 @@ |
{ | ||
"name": "node-json-database", | ||
"version": "0.0.4", | ||
"description": "", | ||
"version": "0.0.5", | ||
"description": "JS Database Management System using JSON files", | ||
"main": "index.js", | ||
"keywords": [], | ||
"keywords": [ "database", "db", "sql", "json" ], | ||
"author": "Iannis de Zwart", | ||
@@ -8,0 +8,0 @@ "license": "ISC", |
73844
1602