Nano-SQL icon indicating copy to clipboard operation
Nano-SQL copied to clipboard

separate database is getting created for each table.

Open Suresh918 opened this issue 5 years ago • 0 comments

Which version are you using? 2.3.7

Describe the bug When i create a database with 2 tables, 2 separate databases (one database per table) are getting created instead of single database with 2 tables as shown in the image. Expected behavior only one database with multiple tables should be created

image

Code used for database creation

nSQL().createDatabase({ id: 'test', mode: 'PERM', tables: [ { name: 'users', model: { 'id:int': {pk: true, ai: true}, 'name:string': {}, 'age:int': {} }, }, { name: 'posts', model: { 'id:int': {pk: true}, 'title:string': {}, 'userId:int': {} }, } ], })

Suresh918 avatar Jan 30 '20 16:01 Suresh918