What happened?
Repro
import adbc_driver_manager
import adbc_driver_sqlite
db = adbc_driver_sqlite.connect()
conn = adbc_driver_manager.AdbcConnection(db)
stmt = adbc_driver_manager.AdbcStatement(conn)
# Does not work regardless of setting this option or not
# And regardless of setting the option as a string or int (the source/docs have both)
stmt.set_options(
**{
adbc_driver_sqlite.StatementOptions.BATCH_ROWS.value: "1",
}
)
val = stmt.get_option(adbc_driver_sqlite.StatementOptions.BATCH_ROWS.value)
# also tried the below with same error
# val = stmt.get_option_int(adbc_driver_sqlite.StatementOptions.BATCH_ROWS.value)
print(val)
Stack Trace
Traceback (most recent call last):
File "/home/henry/development/adbc_sqlite_batch_rows.py", line 15, in <module>
val = stmt.get_option(adbc_driver_sqlite.StatementOptions.BATCH_ROWS.value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "adbc_driver_manager/_lib.pyx", line 1484, in adbc_driver_manager._lib.AdbcStatement.get_option
File "adbc_driver_manager/_lib.pyx", line 261, in adbc_driver_manager._lib.check_error
adbc_driver_manager.ProgrammingError: NOT_FOUND: Unknown option
How can we reproduce the bug?
No response
Environment/Setup
Platform: Linux-6.6.87.2-microsoft-standard-WSL2-x86_64-with-glibc2.31
Python: 3.11.8 (main, May 16 2024, 17:39:05) [GCC 9.4.0]
adbc_driver_manager: 1.8.0
adbc_driver_sqlite: 1.8.0
What happened?
Repro
Stack Trace
How can we reproduce the bug?
No response
Environment/Setup