You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,8 @@ main()
71
71
72
72
`async connect()`: Connects to the database.
73
73
74
+
`async enableForeignKeySupport`: Enables foreign keys on the connection.
75
+
74
76
`async disconnect()`: Disconnects from the database.
75
77
76
78
`async generate(tables: Array)`: Generates the database file based on the configuration. The tables parameter is an array of objects, each object represents a table in the database. The object has properties as described in the configuration section.
@@ -85,10 +87,9 @@ To enable debugging set the `DEBUG` environment variable to `sqlite-data-generat
85
87
86
88
## Roadmap
87
89
88
-
- Fix foreign key constraints issue
89
90
- Extend the example configuration to include more complex examples
90
91
- Add the ability to generate multiple rows of data for a single row in the source table
91
92
92
93
## Known Issues
93
94
94
-
-Foreign key constraints can be configured however they are not properly set up in the database.
0 commit comments