Lines Matching refs:db
116 ** The DBM db contains a key named "METADATA" that holds database-level
118 ** db's version number as the very first 16-bit value. This first number
122 ** If the major number is not what mod_dav expects, then the db is closed
176 int deferred; /* open of db has been deferred */
177 dav_db *db; /* underlying database containing props */
499 /* we're trying to open the db; turn off the 'deferred' flag */
504 &propdb->db);
513 ** NOTE: propdb->db could be NULL if we attempted to open a readonly
548 /* always defer actual open, to avoid expense of accessing db
561 if (propdb->db != NULL) {
562 (*propdb->db_hooks->close)(propdb->db);
588 /* ### what to do with db open error? */
598 if (propdb->db != NULL) {
603 /* define (up front) any namespaces the db might need */
604 (void) (*db_hooks->define_namespaces)(propdb->db, xi);
607 err = (*db_hooks->first_name)(propdb->db, &name);
629 if ((err = (*db_hooks->output_value)(propdb->db, &name,
645 err = (*db_hooks->next_name)(propdb->db, &name);
652 } /* propdb->db != NULL */
809 /* ### what to do with db open error? */
820 if (propdb->db != NULL) {
823 if ((err = (*db_hooks->output_value)(propdb->db, &name,
833 /* if we haven't added the db's namespaces, then do so... */
835 (void) (*db_hooks->define_namespaces)(propdb->db, xi);
974 if (propdb->db == NULL) {
988 (void) (*propdb->db_hooks->map_namespaces)(propdb->db,
1029 ->get_rollback)(propdb->db, &name,
1036 err = (*propdb->db_hooks->store)(propdb->db, &name, ctx->prop,
1057 (void) (*propdb->db_hooks->remove)(propdb->db, &name);
1114 ->apply_rollback)(ctx->propdb->db, ctx->rollback->deadprop);