Exemple #1
0
        private static DataTable executeQuery(string query)
        {
            DatabaseSqlite db = DatabaseSqlite.Instance;

            db.openConnection();
            var ret = db.executeQuery(query);

            db.closeConnection();
            return(ret);
        }
Exemple #2
0
        private static int executeNonQuery(string query)
        {
            DatabaseSqlite db = DatabaseSqlite.Instance;

            db.openConnection();
            db.beginTransaction();
            int ret = db.executeNonQuery(query);

            db.commit();
            db.closeConnection();
            return(ret);
        }