Exemplo n.º 1
0
        internal static void CreateTable(FSpotDatabaseConnection database)
        {
            if (database.TableExists("jobs"))
            {
                return;
            }

            database.Execute(
                "CREATE TABLE jobs (\n" +
                "	id		INTEGER PRIMARY KEY NOT NULL, \n"+
                "	job_type	TEXT NOT NULL, \n"+
                "	job_options	TEXT NOT NULL, \n"+
                "	run_at		INTEGER, \n"+
                "	job_priority	INTEGER NOT NULL\n"+
                ")");
        }
Exemplo n.º 2
0
 private void CheckTableExistance(FSpotDatabaseConnection db, string name)
 {
     Assert.IsTrue (db.TableExists (name), String.Format ("Expected table {0} does not exist.", name));
 }
Exemplo n.º 3
0
 private void CheckTableExistance(FSpotDatabaseConnection db, string name)
 {
     Assert.IsTrue(db.TableExists(name), String.Format("Expected table {0} does not exist.", name));
 }