示例#1
0
        public void TestSerializeGrant()
        {
            string file = Path.Combine(Path.GetTempPath(), Path.GetTempFileName());

            var db1 = Parse(@"GRANT SELECT ON schema1.TABLE_1 TO ROLE1 WITH GRANT OPTION;");

            db1.WriteFile(file);
            var db2 = OracleDatabase.ReadFile(file);
        }
示例#2
0
        protected override void ProcessRecord()
        {
            LogInitializer.Initialize();

            FileInfo f = new FileInfo(this.InputFilename);
            if (!f.Exists)
                throw new FileNotFoundException(f.FullName);

            var db = OracleDatabase.ReadFile(f.FullName);

            base.WriteObject(db);

            base.ProcessRecord();
        }
        public void TestMethod1()
        {
            Func <string, bool> act = shema => { return(true); };
            string file             = Path.Combine(Path.GetTempPath(), Path.GetTempFileName());

            var ctx = new ArgumentContext()
            {
                Source      = "DEV_V",
                Login       = "******",
                Pwd         = "GUEST",
                Filename    = file,
                ExcludeCode = false,
                Name        = "DEV",
                OwnerFilter = "*",
            };

            var db1 = Database.GenerateFile(ctx, act);

            var db2 = OracleDatabase.ReadFile(file);

            // C:\Users\g.beard\AppData\Local\Temp\tmp8C5D.tmp
        }
        public void TestMethod1()
        {
            string path = @"C:\Toolbox\models\ora_inter.config";

            var db = OracleDatabase.ReadFile(path);
        }