Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(desktop): add query for insert default type
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaBrighi committed May 15, 2023
1 parent f9282ce commit ca77670
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ import com.intelligentbackpack.desktopdata.db.entities.SchoolSupplyType
import com.intelligentbackpack.desktopdata.db.entities.Wrote
import com.intelligentbackpack.desktopdata.db.relations.BookCopyWithAuthors
import com.intelligentbackpack.desktopdata.db.relations.BookWithAuthors
import com.intelligentbackpack.desktopdomain.entities.SchoolSupplyTypes

/**
* Desktop DAO to access database
*/
@Dao
internal interface DesktopDAO {

@Query("INSERT INTO School_supply_types (type_id, type) VALUES (0, :defaultType)")
fun insertDefaultType(defaultType: String = SchoolSupplyTypes.BOOK)

/**
* Get an author id from the author name
*
Expand Down

0 comments on commit ca77670

Please sign in to comment.