Skip to Content
Berkeley DB
book

Berkeley DB

by Sleepycat™ Software, Inc.
June 2001
Intermediate to advanced content levelIntermediate to advanced
688 pages
19h 18m
English
Sams
Content preview from Berkeley DB

db put

						db put
						-append
						[-partial {doff dlen}]
						[-txn txnid]
						data
						db put
						[-nooverwrite]
						[-partial {doff dlen}]
						[-txn txnid]
						key data
					

Description

The db put command stores the specified key/data pair into the database.

The options are as follows:

  • -append Append the data item to the end of the database. For the -append option to be specified, the underlying database must be a Queue or Recno database. The record number allocated to the record is returned on success.

  • -nooverwrite Enter the new key/data pair only if the key does not already appear in the database.

  • -partial {doff dlen} The dlen bytes starting doff bytes from the beginning of the specified key’s data record are replaced by the data specified by the data and size structure elements. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Berkeley DB Book

The Berkeley DB Book

Himanshu Yadava
Linux Recipes for Oracle DBAs

Linux Recipes for Oracle DBAs

Darl Kuhn, Charles Kim, Bernard Lopuz
Fedora Linux

Fedora Linux

Chris Tyler

Publisher Resources

ISBN: 0735710643Purchase book