Library Version 11.2.5.3

Db::get_partition_dirs()
Prev | Chapter 2. The Db Handle | Next

## Db::get_partition_dirs()

    #include <db_cxx.h>

    int
    Db::get_partition_dirs(const char ***dirsp);

Determine which directorise the database partitions files will be created in or were found in.

The `Db::get_partition_dirs()` method may be called at any time.

The `Db::get_partition_dirs()` method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

### Parameters

#### dirsp

The dirsp will be set to the array of directories specified in the call to Db::set_partition_dirs() method on this handle or to the directoreies that the database partitions were found in after Db::open() has been called.

### Errors

The `Db::get_partition_dirs()` method may fail and throw a DbException exception, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:

#### EINVAL

An invalid flag value or parameter was specified.

### Class

Db

### See Also

Database and Related Methods

Prev | Up | Next
Db::get_partition_callback() | Home | Db::get_partition_keys()