Skip to content

python / db-api 2.0 / compatibility with sqlite3 API #8

@danielebriggi

Description

@danielebriggi

Working list of API to implement in SQLite Cloud driver to be compatible with Python sqlite3 API (based on PEP 249)

Compatibility with DB-API 2.0

Compatibility with SQLite3

(Incomplete list, to integrate with the list for DB-API 2.0)

  • 12.6.1. Module functions and constants
    • sqlite3.PARSE_DECLTYPES
    • sqlite3.register_converter()
    • sqlite3.register_adapter()
  • 12.6.2. Connection Objects
    • isolation_level - always set to None, autocommit mode
    • in_transaction
    • executescript() - not currently supported by SQLite Cloud
    • row_factory
    • text_factory
    • total_changes
    • create_function() - not currently supported by SQLite Cloud
    • create_aggregate() - not currently supported by SQLite Cloud
    • create_collation() - not currently supported by SQLite Cloud
    • set_authorizer() not currently supported by SQLite Cloud
    • set_progress_handler() - not currently supported by SQLite Cloud
    • set_trace_callback() - not currently supported by SQLite Cloud
  • 12.6.3. Cursor Objects
    • executescript() - not currently supported by SQLite Cloud
  • Row Objects
  • 12.6.6. SQLite and Python types
    • _We support the conversions of native types: NULL, INTEGER, REAL, TEXT, BLOB
  • 12.6.6.2. Using adapters to store additional Python types in SQLite databases
  • Converting SQLite values to custom Python types
  • Accessing columns by name instead of by index
  • Using the connection as a context manager

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions