Example #1
0
 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 )"
             );
 }
Example #2
0
 public void DeleteFromTable(StoredObject sobj)
 {
     DoQuery("DELETE FROM " + sobj.tablename + " WHERE " + sobj.key.name + " = " + sobj.key.GetString());
 }