 |
Working with Databases
A database is a collection of tables and a session may contain several different databases. A database handle may be required before any table or data operations may take place. The following are typical operations performed on a database:
- Allocate a database handle by calling ctdbAllocDatabase()
- Connect to a database by calling ctdbConnect()
- Perform table, index, field and record operations
- When done with the database, disconnect by calling ctdbDisconnect()
- Release the database handle by calling ctdbFreeDatabase()
|