Lines Matching refs:gkey
89 DBT gkey; in DBA_FETCH_FUNC() local
91 gkey.data = ZSTR_VAL(key); in DBA_FETCH_FUNC()
92 gkey.size = ZSTR_LEN(key); in DBA_FETCH_FUNC()
95 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
105 DBT gkey; in DBA_UPDATE_FUNC() local
107 gkey.data = ZSTR_VAL(key); in DBA_UPDATE_FUNC()
108 gkey.size = ZSTR_LEN(key); in DBA_UPDATE_FUNC()
113 …return dba->dbp->put(dba->dbp, &gkey, &gval, mode == 1 ? R_NOOVERWRITE : 0) != RET_SUCCESS ? FAILU… in DBA_UPDATE_FUNC()
120 DBT gkey; in DBA_EXISTS_FUNC() local
122 gkey.data = ZSTR_VAL(key); in DBA_EXISTS_FUNC()
123 gkey.size = ZSTR_LEN(key); in DBA_EXISTS_FUNC()
125 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
131 DBT gkey; in DBA_DELETE_FUNC() local
133 gkey.data = ZSTR_VAL(key); in DBA_DELETE_FUNC()
134 gkey.size = ZSTR_LEN(key); in DBA_DELETE_FUNC()
136 return dba->dbp->del(dba->dbp, &gkey, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
142 DBT gkey; in DBA_FIRSTKEY_FUNC() local
145 memset(&gkey, 0, sizeof(gkey)); in DBA_FIRSTKEY_FUNC()
148 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
149 return zend_string_init(gkey.data, gkey.size, /* persistent */ false); in DBA_FIRSTKEY_FUNC()
157 DBT gkey; in DBA_NEXTKEY_FUNC() local
160 memset(&gkey, 0, sizeof(gkey)); in DBA_NEXTKEY_FUNC()
163 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()
164 return zend_string_init(gkey.data, gkey.size, /* persistent */ false); in DBA_NEXTKEY_FUNC()