Example #1
0
 public check_table(data.database curr_conn, data.tbname tbl_name, data.dbname db_name, diagram_rawdata profile)
 {
     this.curr_conn = curr_conn;
     this.tbl_name  = tbl_name;
     this.db_name   = db_name;
     this.profile   = profile;
 }
Example #2
0
        public void main(workspace wspace)
        {
            var dr    = new diagram_rawdata();
            var watch = new System.Diagnostics.Stopwatch();

            watch.Start();
            foreach (var v in wspace.SourceDbs)
            {
                var tables = new cmd_wraper.database_cmd(data.database.Instance, v).show_tables();
                foreach (var t in tables)
                {
                    if (t.StartsWith(@"tbl_"))
                    {
                        var tbl = new data.tbname(t);
                        new check_table(data.database.Instance, tbl, v, dr).search_table();
                    }
                }
            }
            watch.Stop();
            Console.WriteLine("read database used seconds:" + watch.ElapsedMilliseconds / 1000);
            dr.save_to_disk("checked_tables.xml");
        }