Beispiel #1
0
        // 3. drop table & safe drop table
        public void drop_table(bool bSafe)
        {
            if (bSafe && !exists())
            {
                return;
            }

            var cmd_text = safeformat.format(@"use {0};drop table {1}", db_name, table_name);
            var cmd      = current_conn.prepare_write_cmd(cmd_text);

            current_conn.execute_nonquery(cmd);
        }
        // 2. run_sql_text_cmd
        public void run_sql_text(string sql)
        {
            var cmd = current_db.prepare_write_cmd(sql);

            current_db.execute_nonquery(cmd);
        }