コード例 #1
0
        public List <string> ExecuteQuery(string query)
        {
            SyntaxParser1   syntaxParser    = new SyntaxParser1();
            var             tokens          = syntaxParser.Tokenize(query);
            CommandExecutor commandExecutor = new CommandExecutor(mDB);
            List <string>   result          = commandExecutor.RunDBAction(tokens);

            return(result);
        }
コード例 #2
0
        public void SyntaxParserTest()
        {
            // Arrange
            SyntaxParser1 syntaxParser1 = new SyntaxParser1();

            // Act
            var result = syntaxParser1.Tokenize("db.students.find({First: \"Dina\"})");
            // CommandExecutor commandExecutor = db.GetCommandExecutor();

            List <string> rc = db.CommandExecutor.RunDBAction(result);
        }