I'm using this library to save , retreive and delete data , but whenever i try to perform any of those operations , it throws the above mentionned error , and this is the library that i'm using
implementation 'com.github.p32929:AndroidEasySQL-Library:1.4.1'
- This is my code
private fun deleteCartDetails() {
val easyDB = EasyDB.init(this,"ITEMS_DB")
.setTableName("CART_TABLE")
.addColumn(Column("item_id", *arrayOf("text","unique")))
.addColumn(Column("item_productId", *arrayOf("text","not null")))
.addColumn(Column("item_title", *arrayOf("text","not null")))
.addColumn(Column("item_price", *arrayOf("text","not null")))
.addColumn(Column("item_cost", *arrayOf("text","not null")))
.addColumn(Column("item_quantity", *arrayOf("text","not null")))
easyDB.deleteAllDataFromTable()
}
any help would be appreciated guys , thank you .