Expand description
Python bindings for vibesql using PyO3
This module provides Python bindings following DB-API 2.0 conventions to expose the Rust database library to Python for benchmarking and usage.
§Module Organization
The library is organized into focused modules:
- conversions: Type conversions between Python and Rust SqlValue types
- connection: Database connection management
- cursor: Query cursor implementation and result fetching
- profiling: Performance profiling utilities
§Quick Start
import vibesql
# Create a connection
db = vibesql.connect()
# Get a cursor
cursor = db.cursor()
# Execute a query
cursor.execute("SELECT 1")
# Fetch results
result = cursor.fetchall()Macros§
- profile
- Macro to create a profiling scope
Structs§
- Cursor
- Cursor object for executing SQL statements
- Data
Error - Database
- Database connection object
- Database
Error - Error
- Integrity
Error - Interface
Error - Internal
Error - NotSupported
Error - Operational
Error - Programming
Error - Warning