Library Version 12.1.6.2

Chapter 1. Berkeley DB Tcl APIs
Prev |  | Next

## Chapter 1. Berkeley DB Tcl APIs

This book documents the Tcl APIs that are available for working with Berkeley DB databases. This book assumes you have some familiarity with Berkeley DB.

## Tcl Methods

Database Methods | Description
--- | ---
db close | Close a database
db count | Return a count of the key's data items
db del | Delete items from the database
db get | Get items from a database
db get_join | Get items from a database join
db get_type | Return the database type
db is_byteswapped | Return if the underlying database is in host order
berkdb open | Create and open a database handle
db put | Store items into a database
berkdb dbremove | Remove a database
berkdb dbrename | Rename a database
db stat | Return database statistics
db sync | Flush a database to stable storage
db truncate | Truncate a database
berkdb version | Return version information
Cursor Methods
db cursor | Open a cursor in the database
db join | Perform a database join on cursors
dbc close | Close a cursor
dbc cmp | Compare two cursors
dbc del | Delete by cursor
dbc dup | Duplicate a cursor
dbc get | Retrieve by cursor
dbc put | Store by cursor
Environment Methods
env close | Close an environment
env dbremove | Remove an environment
env dbrename | Rename a database
berkdb env | Create and open an environment handle
berkdb envremove | Remove an environment handle
Transaction Methods
env txn | Begin a transaction
txn abort | Abort a transaction
env txn_checkpoint | Checkpoint the environment
txn commit | Commit a transaction

Prev |  | Next
Preface | Home | db close