Closed anton8900 closed 3 years ago
not yet, but will add it
in develop
. use:
@Table(..., temporary = true, createWithDatabase = false)
disabling createWithDatabase
can ensure on db startup it doesn't get created (if you wish to manually create and drop it)
then to activate it:
database<MyDatabase> { db ->
modelAdapter<MyTempModel>().createIfNotExists(db)
// can drop it later if so wish
modelAdapter<MyTempModel>().drop(db)
}
Do you support temp tables? If yes please explain me how to create and use temp table using DbFlow