Пример #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();
        }
Пример #3
0
        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
        }
Пример #4
0
        public void TestMethod1()
        {
            string path = @"C:\Toolbox\models\ora_inter.config";

            var db = OracleDatabase.ReadFile(path);
        }