I have a Kolin Android Application with a Database. I use the Anko library for the Database Communication. I can insert Data in my Database but I have some troubles when I try to get a data row from my Database.
I try to get the Data Row through the following code
try {
var result = select("projects").where("rowid = {id}",
"id" to 1).parseList(StringParser)
Toast.makeText(applicationContext,result.toString(),Toast.LENGTH_LONG).show()
} catch(e: Exception) {
Toast.makeText(applicationContext,e.toString(),Toast.LENGTH_LONG).show()
}
How can I get the content of the Row with the given id
At the moment I get this error
Invalid row: row for SingleColumnParser must contain exactly one column