You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ``drivermgr.LoadFlagsSearchEnv`` - search the directory paths in the environment variable
386
+
``ADBC_CONFIG_PATH``
384
387
* ``drivermgr.LoadFlagsSearchUser`` - search the user configuration directory
385
388
* ``drivermgr.LoadFlagsSearchSystem`` - search the system configuration directory
386
389
* ``drivermgr.LoadFlagsAllowRelativePaths`` - allow a relative path to be used
@@ -403,7 +406,8 @@ to control which directories will be searched for manifests, with the behavior b
403
406
404
407
The class ``ADBC::LoadFlags`` is a set of bitflags to control the directories to be searched. The flags are
405
408
406
-
* ``ADBC::LoadFlags::SEARCH_ENV`` - search the environment variable ``ADBC_CONFIG_PATH``
409
+
* ``ADBC::LoadFlags::SEARCH_ENV`` - search the directory paths in the environment variable
410
+
``ADBC_CONFIG_PATH`` and (when built or installed with conda) search in the conda environment
407
411
* ``ADBC::LoadFlags::SEARCH_USER`` - search the user configuration directory
408
412
* ``ADBC::LoadFlags::SEARCH_SYSTEM`` - search the system configuration directory
409
413
* ``ADBC::LoadFlags::ALLOW_RELATIVE_PATHS`` - allow a relative path to be provided
@@ -419,7 +423,8 @@ to control which directories will be searched for manifests, with the behavior b
419
423
The ``ManagedDriver`` type has a method ``load_dynamic_from_name`` which takes an optional ``load_flags`` parameter. The flags as a ``u32`` with
420
424
the type ``adbc_core::driver_manager::LoadFlags``, which has the following constants:
421
425
422
-
* ``LOAD_FLAG_SEARCH_ENV`` - search the environment variable ``ADBC_CONFIG_PATH``
426
+
* ``LOAD_FLAG_SEARCH_ENV`` - search the directory paths in the environment variable
427
+
``ADBC_CONFIG_PATH`` and (when built or installed with conda) search in the conda environment
423
428
* ``LOAD_FLAG_SEARCH_USER`` - search the user configuration directory
424
429
* ``LOAD_FLAG_SEARCH_SYSTEM`` - search the system configuration directory
425
430
* ``LOAD_FLAG_ALLOW_RELATIVE_PATHS`` - allow a relative path to be used
@@ -431,12 +436,15 @@ Unix-like Platforms
431
436
For Unix-like platforms, (e.g. Linux, macOS), the driver manager will search the following directories based on the options provided, in
432
437
the given order:
433
438
434
-
#. If the ``LOAD_FLAG_SEARCH_ENV`` load option is set, then environment variables will be searched in this order
439
+
#. If the ``LOAD_FLAG_SEARCH_ENV`` load option is set, then the paths in the environment variable ``ADBC_CONFIG_PATH`` will be searched
435
440
436
-
* ``ADBC_CONFIG_PATH`` is a colon-separated list of directories to search for ``${name}.toml``
437
-
* ``CONDA_PREFIX`` is used by `conda <https://anaconda.org/anaconda/conda>`__ and if set
438
-
``$CONDA_PREFIX/etc/adbc`` will be searched for ``${name}.toml`` (This only occurs when built using conda-build
439
-
or otherwise building for a conda package)
441
+
* ``ADBC_CONFIG_PATH`` is a colon-separated list of directories
442
+
443
+
#. If additional search paths have been specified, those will be searched
444
+
445
+
* The Python driver manager automatically adds ``$VIRTUAL_ENV/etc/adbc`` to the search paths when running in a ``venv`` virtual environment
446
+
447
+
#. If the driver manager was built or installed with conda and the ``LOAD_FLAG_SEARCH_ENV`` load option is set, ``$CONDA_PREFIX/etc/adbc`` will be searched
440
448
441
449
#. If the ``LOAD_FLAG_SEARCH_USER`` load option is set, then a user-level configuration directory will be searched
442
450
@@ -455,13 +463,15 @@ Windows
455
463
Things are slightly different on Windows, where the driver manager will also search for driver information in the registry just as
456
464
would happen for ODBC drivers. The search for a manifest on Windows would be the following:
457
465
458
-
#. If the ``LOAD_FLAG_SEARCH_ENV`` load option is set, then the environment variables will be searched in this order
466
+
#. If the ``LOAD_FLAG_SEARCH_ENV`` load option is set, then the paths in the environment variable ``ADBC_CONFIG_PATH`` will be searched
467
+
468
+
* ``ADBC_CONFIG_PATH`` is a semicolon-separated list of directories
469
+
470
+
#. If additional search paths have been specified, those will be searched
459
471
460
-
* ``ADBC_CONFIG_PATH`` is a semicolon-separated list of directories to search for ``${name}.toml``
461
-
* ``CONDA_PREFIX`` is used by `conda <https://anaconda.org/anaconda/conda>`__ and if set
462
-
``$CONDA_PREFIX/etc/adbc`` will be searched for ``${name}.toml`` (This only occurs when built using conda-build
463
-
or otherwise building for a conda package)
472
+
* The Python driver manager automatically adds ``$VIRTUAL_ENV\etc\adbc`` to the search paths when running in a ``venv`` virtual environment
464
473
474
+
#. If the driver manager was built or installed with conda and the ``LOAD_FLAG_SEARCH_ENV`` load option is set, ``$CONDA_PREFIX\etc\adbc`` will be searched
465
475
466
476
#. If the ``LOAD_FLAG_SEARCH_USER`` load option is set, then a user-level configuration is searched for
467
477
@@ -474,7 +484,7 @@ would happen for ODBC drivers. The search for a manifest on Windows would be the
474
484
* ``entrypoint`` - the entrypoint to use for the driver if a non-default entrypoint is needed
475
485
* ``driver`` - the path to the driver shared library
476
486
477
-
* If no registry key is found, then the directory ``%LOCAL_APPDATA%\ADBC\drivers`` is searched for ``${name}.toml``
487
+
* If no registry key is found, then the directory ``%LOCAL_APPDATA%\ADBC\drivers`` is searched
478
488
479
489
#. If the ``LOAD_FLAG_SEARCH_SYSTEM`` load option is set, the driver manager will search for a system-level configuration
0 commit comments