Skip to content

vast-data/vastdb-adbc-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

VastDB Query Engine ADBC Driver

Overview

The VastDB ADBC Driver provides access to the VastDB Query Engine.

At present, the Query Engine supports query operations for selection and filtering.

For more details about the VAST Database, see this whitepaper.

Requirements

Installation

The VastDB ADBC Driver is shipped as a standalone library.

Usage

Supply the AdbcDatabase with the following options

  • vast.db.endpoint - VAST cluster endpoint
  • vast.db.access_key - AWS access key
  • vast.db.secret_key - AWS secret access key

Example of using the VastDB ADBC Driver with the Python adbc-driver-manager.

import adbc_driver_manager

with adbc_driver_manager.dbapi.connect(
    driver="<path/to/driver>",
    db_kwargs={
        "vast.db.endpoint": "<vast_cluster_endpoint>",
        "vast.db.access_key": "<aws_access_key>",
        "vast.db.secret_key": "<aws_secret_key>",
    }
) as conn:
    # Use the database connection
    pass

Logging

  • Default logging level: INFO.
  • To increase verbosity, set the environment variable RUST_LOG to values like DEBUG or TRACE.

Log Location

Logs are written to the following directory on Linux systems:

~/.local/share/VastDbDriver/vastdb_driver.log

  • Logs are rotated daily or when the file reaches 100 MB.
  • The system keeps up to 10 log files at a time.

Known Limitations

  • AdbcConnectionGetObjects: Supports only the vastdb catalog and exact filter for db_schema
  • GetStatistics: Not supported.
  • ExecutePartitions Not supported.
  • AdbcStatementPrepare: Prepare should be done using SQL prepare statements through execute.
  • StatementExecuteSchema, AdbcStatementGetParameterSchema and AdbcStatementSetSubstraitPlan: Not supported.

Support

For detailed documentation, FAQs, and troubleshooting guides, refer to the official resources or contact the VastDB support team.


This driver is compatible with the ADBC interface, and thus integrates seamlessly into existing ADBC workflows, with noted exceptions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published