/* generated file, don't edit. */


package de.tutao.tutashared.ipc

import kotlinx.serialization.*
import kotlinx.serialization.json.*

interface SqlCipherFacade {
	suspend fun openDb(
		userId: String,
		dbKey: DataWrapper,
	): Unit
	suspend fun closeDb(
	): Unit
	suspend fun deleteDb(
		userId: String,
	): Unit
	suspend fun run(
		query: String,
		params: List<TaggedSqlValue>,
	): Unit
	/**
	 * get a single object or null if the query returns nothing
	 */
	suspend fun get(
		query: String,
		params: List<TaggedSqlValue>,
	): Map<String, TaggedSqlValue>?
	/**
	 * return a list of objects or an empty list if the query returns nothing
	 */
	suspend fun all(
		query: String,
		params: List<TaggedSqlValue>,
	): List<Map<String, TaggedSqlValue>>
	/**
	 * Split the query into the tokens with signal tokenizer
	 */
	suspend fun tokenize(
		query: String,
	): List<String>
}
