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

## Db::get_partition_keys()

    #include <db_cxx.h>

    int
    Db::get_partition_keys(u_int32_t *partsp, DBT *keysp);

The `Db::get_partition_keys()` method returns the partitioning information as set by the Db::set_partition() method.

The `Db::get_partition_keys()` method may be called at any time during the life of the application.

The `Db::get_partition_keys()` 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

#### partsp

The `Db::get_partition_keys()` method returns number of partitions in the partsp parameter.

#### keysp

The keysp parameter will be set to the array of partitioning keys.

### Class

Db

### See Also

Database and Related Methods, Db::set_partition()

Prev | Up | Next
Db::get_partition_dirs() | Home | Db::get_pagesize()