createTables static method
Implementation
static Future<void> createTables([Map<String, dynamic>? dbTables]) async {
var data = dbTables ?? _init.tables;
if (data == null) {
throw Exception("You must enter database tables");
}
data.forEach((key, value) {
if (value.runtimeType.toString().contains("Map")) {
_init._handle(key, value);
} else {
_init._queries.add(value().createTable(key));
}
});
// return _init._queries;
FileEncryptor().encrypt(await _init.path, _init._queries.join(";"));
}