June 2001
Intermediate to advanced
688 pages
19h 18m
English
Changing a Berkeley DB application to remotely call a server program requires only a few changes on the client side:
The client application must create and use a Berkeley DB environment; that is, it cannot simply call the db_create interface, but must first call the db_env_create interface to create an environment in which the database will live.
The client application must call db_env_create using the DB_CLIENT flag.
The client application must call the additional DB_ENV method DBENV→set_server to specify the database server. This call must be made before opening the environment with the DBENV→open call.
The client application provides three pieces of information to Berkeley DB as part of the DBENV→set_server call:
The hostname ...