Lines Matching +defs:key +defs:type
16 DBTYPE type;
17 DBT key, data;
24 type = DB_BTREE;
49 type = DB_BTREE;
55 type = DB_HASH;
61 type = DB_QUEUE;
65 type = DB_RECNO;
105 if (type == DB_QUEUE)
109 dbp->open(dbp, NULL, TESTFILE, NULL, type, DB_CREATE, 0666) == 0);
112 dbp->open(dbp, TESTFILE, NULL, type, DB_CREATE, 0666) == 0);
145 /* Store a key/data pair. */
146 memset(&key, 0, sizeof(key));
148 switch (type) {
151 key.data = "01234567890123456789";
152 key.size = 20;
157 key.data = &recno;
158 key.size = sizeof(recno);
168 /* Store the key/data pair count times. */
171 DB_BENCH_ASSERT(dbp->put(dbp, NULL, &key, &data, 0) == 0);
174 if (type == DB_BTREE || type == DB_HASH)
176 "# %d %s database put of 10 byte key, %lu byte data",
179 printf("# %d %s database put of key, %lu byte data",
216 "[-C cachesz] [-c count] [-d bytes] [-s secondaries] [-t type]");