Skip to content

Commit 0fbf619

Browse files
committed
checkpoint
1 parent 0a14b6b commit 0fbf619

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

src/duckdb_py/duckdb_python.cpp

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -956,16 +956,14 @@ PYBIND11_MODULE(DUCKDB_PYTHON_LIB_NAME, m) { // NOLINT
956956
.value("STANDARD", duckdb::ExplainType::EXPLAIN_STANDARD,
957957
"Standard explain output showing the logical query plan.")
958958
.value("ANALYZE", duckdb::ExplainType::EXPLAIN_ANALYZE,
959-
"Analyze explain with execution statistics and timing information.")
960-
.export_values();
959+
"Analyze explain with execution statistics and timing information.");
961960

962961
py::enum_<duckdb::StatementReturnType>(m, "ExpectedResultType",
963962
"Enumeration for different result types.\n\n"
964963
"This enum lists the possible result types from queries.")
965964
.value("QUERY_RESULT", duckdb::StatementReturnType::QUERY_RESULT)
966965
.value("CHANGED_ROWS", duckdb::StatementReturnType::CHANGED_ROWS)
967-
.value("NOTHING", duckdb::StatementReturnType::NOTHING)
968-
.export_values();
966+
.value("NOTHING", duckdb::StatementReturnType::NOTHING);
969967

970968
py::enum_<duckdb::StatementType>(m, "StatementType",
971969
"Enumeration for different SQL statement types.\n\n"
@@ -1090,8 +1088,7 @@ PYBIND11_MODULE(DUCKDB_PYTHON_LIB_NAME, m) { // NOLINT
10901088
.value("MERGE_INTO_STATEMENT", duckdb::StatementType::MERGE_INTO_STATEMENT,
10911089
"Data merging statement (MERGE INTO).\n"
10921090
"Statements that perform conditional insert, update, or delete\n"
1093-
"operations based on matching conditions between source and target tables.")
1094-
.export_values();
1091+
"operations based on matching conditions between source and target tables.");
10951092

10961093
py::enum_<duckdb::PythonCSVLineTerminator::Type>(
10971094
m, "CSVLineTerminator",
@@ -1104,8 +1101,7 @@ PYBIND11_MODULE(DUCKDB_PYTHON_LIB_NAME, m) { // NOLINT
11041101
"This is the standard line ending on Unix-like systems including Linux and macOS.")
11051102
.value("CARRIAGE_RETURN_LINE_FEED", duckdb::PythonCSVLineTerminator::Type::CARRIAGE_RETURN_LINE_FEED,
11061103
"Windows-style line terminator using Carriage Return + Line Feed (\\r\\n).\n"
1107-
"This is the standard line ending on Windows systems and some network protocols.")
1108-
.export_values();
1104+
"This is the standard line ending on Windows systems and some network protocols.");
11091105

11101106
py::enum_<duckdb::PythonExceptionHandling>(m, "PythonExceptionHandling",
11111107
"Enumeration for Python exception handling strategies.\n\n"
@@ -1119,8 +1115,7 @@ PYBIND11_MODULE(DUCKDB_PYTHON_LIB_NAME, m) { // NOLINT
11191115
.value("RETURN_NULL", duckdb::PythonExceptionHandling::RETURN_NULL,
11201116
"Return NULL when Python functions raise exceptions.\n"
11211117
"Instead of failing the query, exceptions in Python functions\n"
1122-
"will result in NULL values, allowing the query to continue execution.")
1123-
.export_values();
1118+
"will result in NULL values, allowing the query to continue execution.");
11241119

11251120
py::enum_<duckdb::RenderMode>(m, "RenderMode",
11261121
"Enumeration for result rendering modes.\n\n"
@@ -1134,8 +1129,7 @@ PYBIND11_MODULE(DUCKDB_PYTHON_LIB_NAME, m) { // NOLINT
11341129
.value("COLUMNS", duckdb::RenderMode::COLUMNS,
11351130
"Column-oriented rendering mode.\n"
11361131
"Results are displayed with columns grouped together,\n"
1137-
"which can be more efficient for wide tables or analytical workflows.")
1138-
.export_values();
1132+
"which can be more efficient for wide tables or analytical workflows.");
11391133

11401134
DuckDBPyTyping::Initialize(m);
11411135
DuckDBPyFunctional::Initialize(m);

src/duckdb_py/pyexpression/initialize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ void InitializeStaticMethods(py::module_ &m) {
1414
m.def("ConstantExpression", &DuckDBPyExpression::ConstantExpression, py::arg("value"), docs);
1515

1616
// ColumnRef Expression
17-
docs = "Create a column expression - e.g. SELECT column - from the provided column name(s).";
18-
m.def("ColumnExpression", &DuckDBPyExpression::ColumnExpression, py::arg("names"), docs);
17+
docs = "Create a column expression - e.g. SELECT column - from the optional column name(s).";
18+
m.def("ColumnExpression", &DuckDBPyExpression::ColumnExpression, docs);
1919

2020
// Default Expression
2121
docs = "Create a default expression - e.g. INSERT a=DEFAULT WHERE b=42.";

0 commit comments

Comments
 (0)