public void CreateTableIfNotExists(StoredObject sobj) { DoQuery("CREATE TABLE IF NOT EXISTS " + sobj.tablename + " (" + sobj.key.name + " " + sobj.key.type + "(" + sobj.key.size + ")" + " NOT NULL PRIMARY KEY )" ); }
public void DeleteFromTable(StoredObject sobj) { DoQuery("DELETE FROM " + sobj.tablename + " WHERE " + sobj.key.name + " = " + sobj.key.GetString()); }