mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Sqlite table delete method created
This commit is contained in:
@@ -516,9 +516,36 @@ export class SqliteService {
|
||||
});
|
||||
}
|
||||
|
||||
deleteEventTable() {
|
||||
this.dbInstance.executeSql("delete from "+ this.events).then((res) => {
|
||||
deleteAllTables() {
|
||||
this.deleteeventsTable();
|
||||
this.deleteallprocessTable();
|
||||
this.deleteactionsTable();
|
||||
this.deletepublicationsTable();
|
||||
|
||||
console.log('All tables deleted')
|
||||
}
|
||||
|
||||
deleteeventsTable() {
|
||||
return this.dbInstance.executeSql("DELETE from "+ this.events).then((res) => {
|
||||
console.log('DELETE EVENT TABLE RESULT ', res)
|
||||
});
|
||||
}
|
||||
|
||||
deleteallprocessTable() {
|
||||
return this.dbInstance.executeSql("DELETE from "+ this.allprocess).then((res) => {
|
||||
console.log('DELETE ALLPROCESS TABLE RESULT ', res)
|
||||
});
|
||||
}
|
||||
|
||||
deleteactionsTable() {
|
||||
return this.dbInstance.executeSql("DELETE from "+ this.actions).then((res) => {
|
||||
console.log('DELETE actions TABLE RESULT ', res)
|
||||
});
|
||||
}
|
||||
|
||||
deletepublicationsTable() {
|
||||
return this.dbInstance.executeSql("DELETE from "+ this.publications).then((res) => {
|
||||
console.log('DELETE publications TABLE RESULT ', res)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user