Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion mssql_python/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ execute_process(
)

# Add module library
add_library(ddbc_bindings MODULE ddbc_bindings.cpp)
add_library(ddbc_bindings MODULE ddbc_bindings.cpp connection/connection.cpp)

# Add include directories for your project
target_include_directories(ddbc_bindings PRIVATE
${CMAKE_CURRENT_SOURCE_DIR} # Root directory (for ddbc_bindings.h)
${CMAKE_CURRENT_SOURCE_DIR}/connection # connection directory (for connection.h)
)

# Set the output name to include Python version and architecture
set_target_properties(ddbc_bindings PROPERTIES
Expand Down
4 changes: 0 additions & 4 deletions mssql_python/pybind/connection/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ SQLRETURN Connection::rollback() {
// to be added
}

SQLRETURN Connection::end_transaction(SQLSMALLINT completion_type) {
// to be added
}

SQLRETURN Connection::set_autocommit(bool enable) {
LOG("Setting autocommit mode");
// to be added
Expand Down
3 changes: 0 additions & 3 deletions mssql_python/pybind/connection/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ class Connection {
// Rollback the current transaction.
SQLRETURN rollback();

// End the transaction with the specified completion type.
SQLRETURN end_transaction(SQLSMALLINT completion_type);

// Enable or disable autocommit mode.
SQLRETURN set_autocommit(bool value);

Expand Down