Example #1
0
    static void Main(string[] args)
    {
        SqlMetadata md =  new SimpleSqlMetadata();
        SqlToDmqlCompiler compiler = new SqlToDmqlCompiler(md);
        compiler.sqlToDmql("select * from data:Property:RES where ListPrice >= 30000;");

        DmqlQueryPtr query = compiler.GetDmqlQuery();
        Console.WriteLine ("Resource: " + query.GetResource());
        Console.WriteLine("Class: " + query.GetClass());
        Console.WriteLine ("Query: " + query.GetCriterion().ToDmqlString());
    }
Example #2
0
    static void Main(string[] args)
    {
        SqlMetadata       md       = new SimpleSqlMetadata();
        SqlToDmqlCompiler compiler = new SqlToDmqlCompiler(md);

        compiler.sqlToDmql("select * from data:Property:RES where ListPrice >= 30000;");

        DmqlQueryPtr query = compiler.GetDmqlQuery();

        Console.WriteLine("Resource: " + query.GetResource());
        Console.WriteLine("Class: " + query.GetClass());
        Console.WriteLine("Query: " + query.GetCriterion().ToDmqlString());
    }