duckdb 0.3.2-dev955.0 → 0.3.2-dev980.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/duckdb.hpp CHANGED
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
11
11
  #pragma once
12
12
  #define DUCKDB_AMALGAMATION 1
13
13
  #define DUCKDB_AMALGAMATION_EXTENDED 1
14
- #define DUCKDB_SOURCE_ID "0fead7880"
15
- #define DUCKDB_VERSION "0.3.2-dev955"
14
+ #define DUCKDB_SOURCE_ID "cd8ea601b"
15
+ #define DUCKDB_VERSION "0.3.2-dev980"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -19831,6 +19831,13 @@ struct SimplifiedToken {
19831
19831
  idx_t start;
19832
19832
  };
19833
19833
 
19834
+ enum class KeywordCategory : uint8_t { KEYWORD_RESERVED, KEYWORD_UNRESERVED, KEYWORD_TYPE_FUNC, KEYWORD_COL_NAME };
19835
+
19836
+ struct ParserKeyword {
19837
+ string name;
19838
+ KeywordCategory category;
19839
+ };
19840
+
19834
19841
  } // namespace duckdb
19835
19842
 
19836
19843
 
@@ -19848,6 +19855,10 @@ class Parser {
19848
19855
  public:
19849
19856
  Parser();
19850
19857
 
19858
+ //! The parsed SQL statements from an invocation to ParseQuery.
19859
+ vector<unique_ptr<SQLStatement>> statements;
19860
+
19861
+ public:
19851
19862
  //! Attempts to parse a query into a series of SQL statements. Returns
19852
19863
  //! whether or not the parsing was successful. If the parsing was
19853
19864
  //! successful, the parsed statements will be stored in the statements
@@ -19859,6 +19870,8 @@ public:
19859
19870
 
19860
19871
  //! Returns true if the given text matches a keyword of the parser
19861
19872
  static bool IsKeyword(const string &text);
19873
+ //! Returns a list of all keywords in the parser
19874
+ static vector<ParserKeyword> KeywordList();
19862
19875
 
19863
19876
  //! Parses a list of expressions (i.e. the list found in a SELECT clause)
19864
19877
  static vector<unique_ptr<ParsedExpression>> ParseExpressionList(const string &select_list);
@@ -19871,15 +19884,6 @@ public:
19871
19884
  static vector<vector<unique_ptr<ParsedExpression>>> ParseValuesList(const string &value_list);
19872
19885
  //! Parses a column list (i.e. as found in a CREATE TABLE statement)
19873
19886
  static vector<ColumnDefinition> ParseColumnList(const string &column_list);
19874
-
19875
- //! The parsed SQL statements from an invocation to ParseQuery.
19876
- vector<unique_ptr<SQLStatement>> statements;
19877
-
19878
- private:
19879
- //! Transform a Postgres parse tree into a set of SQL Statements
19880
- bool TransformList(duckdb_libpgquery::PGList *tree);
19881
- //! Transform a single Postgres parse node into a SQL Statement.
19882
- unique_ptr<SQLStatement> TransformNode(duckdb_libpgquery::PGNode *stmt);
19883
19887
  };
19884
19888
  } // namespace duckdb
19885
19889
  //===----------------------------------------------------------------------===//