Beispiel #1
0
        public QueryPlan GeneratePlan(CreateDatabaseStatement statement)
        {
            var step = new CreateDatabaseStep();

            step.DatabaseName = statement.DatabaseName;
            step.IsValid      = true;
            var plan = new QueryPlan();

            plan.Steps.Add(step);

            return(plan);
        }
Beispiel #2
0
        private FrostIDDLStatement GetDDLStatementType(string input)
        {
            FrostIDDLStatement result = null;

            if (input.Contains(QueryKeywords.CREATE_TABLE))
            {
                result = new CreateTableStatement();
            }

            if (input.Contains(QueryKeywords.CREATE_DATABASE))
            {
                result = new CreateDatabaseStatement();
            }

            return(result);
        }