Nano-SQL
Nano-SQL copied to clipboard
separate database is getting created for each table.
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
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': {} }, } ], })