Crate vibesql

Crate vibesql 

Source
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
DataError
Database
Database connection object
DatabaseError
Error
IntegrityError
InterfaceError
InternalError
NotSupportedError
OperationalError
ProgrammingError
Warning