Library Version 12.1.6.2

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

## Db::get_partition_callback()

    #include <db_cxx.h>

    int
    Db::get_partition_callback(u_int32_t *partsp,
    	u_int32_t (**callback_fcn) (DB *dbp, DBT *key);

The `Db::get_partition_callback()` method returns the database partitioning callback as set by the Db::set_partition() method.

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

The `Db::get_partition_callback()` 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 partsp parameter returns the number of partitions used by the database.

#### callback_fcn

The callback_fcn parameter returns the partitioning callback.

### Class

Db

### See Also

Database and Related Methods, Db::set_partition()

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