MCPcopy Create free account
hub / github.com/cruppstahl/upscaledb / construct_db

Function construct_db

python/src/python.cc:1078–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076};
1077
1078static PyObject *
1079construct_db(PyObject *self, PyObject *args)
1080{
1081 UpsDatabase *hdb = PyObject_New(UpsDatabase, &UpsDatabase_Type);
1082 if (!hdb)
1083 return (0);
1084
1085 hdb->db = 0;
1086 hdb->flags = 0;
1087 hdb->comparecb = 0;
1088 hdb->err_type = 0;
1089 hdb->err_value = 0;
1090 hdb->err_traceback = 0;
1091 hdb->cursorlist = 0;
1092
1093 return ((PyObject *)hdb);
1094}
1095
1096static PyObject *
1097cursor_getattr(UpsCursor *self, char *name)

Callers 2

env_create_dbFunction · 0.85
env_open_dbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected