buildBundle

fun buildBundle(path: String, tables: List<Table> = emptyList(), append: Boolean = false, deleteAfter: Boolean = true, builder: (Database) -> Unit): ByteArray

Convenience function for bundle build

  1. creates or opens an SQLite database

  2. calls builder

  3. closes and unregisters the database

  4. reads the database file into a byte array

  5. returns with that byte array

Parameters

path

The file path to the bundle file.

append

When true, an existing file may be opened and updated.

deleteAfter

When true, the SQLite DB file is deleted.