l_database&quot;}.db&#39;);

  _database = await openDatabase(
    path,
    version: 1,
    onCreate: (db, version) async {
      &#47;&#47; Creates tables for each repository
      for (var repository in repositories) {
        var createTableQuery = repository.generateCreateTableQuery();
        await db.execute(createTableQuery);
        print(&#39;--- Create table ${repository.tableName} ---&#39;);
      }
    },
    singleInstance: true,
  );
}</code></pre>
</section>


  </div> <!-- /.main-content --