Skip to main content

sqlclient

sqlclient implements abstract classes for clients to SQL-like services. A concrete subclass would use a DB-API compliant client package for the service, and mostly need to work out how to establish a connection to the server. Subsequently, all the convenient functions provided by sqlclient would work. The subclass may add methods that are specific to the particular type of database.

Both sync and async methods are provided. The async methods are implemented using the sync methods and a thread pool, hence do not require the client package to have async capabilities.

A concrete implementation is provided for sqlite, which also facilitates tests.

One use case of this package is to facilitate a consistent usage pattern when a single project uses multiple databases.

Release history Release notifications | RSS feed

This release

21.4.24 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page