using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcessDatabase
{
    public class Struct
    {
        public struct ColumnStruct
        {
            public string column_name;
            public string column_type;
            public int column_size;
            public string column_value;
        }

        public class DataStruct
        {
            public string schema;
            public string table;
            public string type;     // dml type
            public List<ColumnStruct> process_column_list;
            public List<ColumnStruct> condition_list;

            public DataStruct()
            {
                process_column_list = new List<ColumnStruct>();
                condition_list = new List<ColumnStruct>();
            }
        }

        public class CmdStruct
        {
            public List<string> cmd_list;
            public List<string> type_list;

            public CmdStruct()
            {
                cmd_list = new List<string>();
                type_list = new List<string>();
            }
        }

        public struct ExecuteResultStruct
        {
            public int total_count;
            public int insert_count;
            public int insert_success;
            public int update_count;
            public int update_success;
            public int delete_count;
            public int delete_success;
        }
    }
}
