---
name: "wdb_keys"
section: "3"
platform: "linux"
package: "clearsilver-dev"
version: "0.10.5-6+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/wdb_keys"
---

# wdb\_keys(3)

return the key and column for the current database (clearsilver)

## NAME

wdb\_keys - return the key and column for the current database (clearsilver)

## SYNOPSIS

```
#include <util/wdb.h>
```

```
NEOERR * wdb_keys (WDB *wdb, char **primary_key, ULIST **data);
```

## ARGUMENTS

wdb - open database

## DESCRIPTION

this function returns the key and column names for the current database

## RETURN VALUE

primary\_key - pointer to the primary key\
 data - pointer to a ULIST of the columns.\
 both of these are allocated structures, you can clear data\
 with uListDestroy (data, ULIST\_FREE)

## SEE ALSO

**wdb\_destroy**(3), **wdbr\_delete**(3), **wdb\_update**(3), **wdbr\_dump**(3), **wdb\_save**(3), **wdbr\_create**(3), **wdbr\_destroy**(3), **wdb\_attr\_set**(3), **wdb\_attr\_next**(3), **wdb\_open**(3), **wdb\_column\_exchange**(3), **wdbr\_set**(3), **wdb\_column\_insert**(3), **wdbr\_save**(3), **wdbr\_next**(3), [**wdb\_keys**(3)](/wdb_keys/3.md), **wdb\_column\_delete**(3), **wdbc\_create**(3), **wdbr\_get**(3), **wdb\_attr\_get**(3), **wdbr\_find**(3), **wdbr\_lookup**(3), **wdb\_create**(3), **wdbc\_destroy**(3), **wdb\_column\_update**
