react-native-db-models
react-native-db-models copied to clipboard
erase_db() doesn't reset increment
trafficstars
Hello! Shouldn't erase_db() reset the autoIncrement also?
@puredazzle erase_db() working for you???
It did when I tested 4 months ago. Haven't used react native or the plugin since.
Looking at the code, it appears erase_db is meant to be taken as "erase the data in the DB" rather than "erase the database itself." So I would say it's not meant to reset the autoinc. If it erased the db, then you'd have to create the db all over again before adding anything. That would be something you'd expect the autoinc to go back to 0 for.