Skip to content

make execute private#65

Merged
hnwyllmm merged 1 commit into
oceanbase:developfrom
hnwyllmm:embedding-function
Dec 9, 2025
Merged

make execute private#65
hnwyllmm merged 1 commit into
oceanbase:developfrom
hnwyllmm:embedding-function

Conversation

@hnwyllmm

@hnwyllmm hnwyllmm commented Dec 9, 2025

Copy link
Copy Markdown
Member

Summary

close #64
make Client.execute a private method.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the SQL execution method from public (execute) to private (_execute) across the codebase, following Python conventions for internal methods. The changes update the abstract base class and its two concrete implementations (embedded and remote server clients), along with documentation updates to remove public API examples.

  • Renamed BaseConnection.execute() to BaseConnection._execute() in the abstract base class
  • Updated all internal calls to _execute() in RemoteServerClient and SeekdbEmbeddedClient implementations
  • Removed public API example showing client.execute() usage from README

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/pyseekdb/client/base_connection.py Renamed abstract method from execute to _execute; removed unused _Transaction class
src/pyseekdb/client/client_seekdb_server.py Updated 4 method calls from self.execute() to self._execute()
src/pyseekdb/client/client_seekdb_embedded.py Updated 4 method calls from self.execute() to self._execute(); cleaned up whitespace
README.md Removed code example demonstrating public execute() method usage
src/pyseekdb/client/init.py Removed trailing whitespace from comment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hnwyllmm hnwyllmm merged commit d5d0848 into oceanbase:develop Dec 9, 2025
7 checks passed
@hnwyllmm hnwyllmm deleted the embedding-function branch December 9, 2025 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants