Skip to content
Siminov Framework edited this page Jan 16, 2016 · 10 revisions

Drop Table

Database class provides following API to drop a table.

Android API: Drop Table

    public void dropTable() throws DatabaseException;
Android Sample: Drop Table
    try {
        new Book().dropTable();
    } catch(DatabaseException databaseException) {
		//Log It.
    }

iOS API: Drop Table

    + (void)dropTable;
iOS Sample: Drop Table
    @try {
        [[[Book alloc] init] dropTable];
    } @catch(SICDatabaseException *databaseException) {
		//Log It.
    }

Windows API: Drop Table

    public void DropTable();
Windows Sample: Drop Table
    try 
    {
        new Book().DropTable();
    } 
    catch(DatabaseException databaseException) 
    {
		//Log It.
    }