Package zakadabar.lib.blobs.persistence.sqlite

Functions

buildBundle
Link copied to clipboard
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

deployBundle
Link copied to clipboard
fun deployBundle(path: String, databaseName: String, databaseBundle: ByteArray, overwrite: Boolean = true)
Create a new database from a databaseBundle.