Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_lmdb_metadata.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Adaptive Framework LMDB Adaptor Metadata Header
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_LMDB_METADATA_H__
10 #define __AFW_LMDB_METADATA_H__
11 
12 
18 #include "afw_minimal.h"
19 #include "afw_lmdb.h"
20 #include "afw_lmdb_internal.h"
21 #include "afw_utf8.h"
22 
24 
25 
26 AFW_END_DECLARES
27 
29 
30  /* Use count. */
31  unsigned int use_count;
32 
33  /* Schema */
34  const afw_object_t *schema;
35 
36  /* Subpool for metadata. */
37  const afw_pool_t *p;
38 };
39 
40 
50  afw_lmdb_adaptor_t *adaptor,
51  afw_xctx_t *xctx);
52 
53 
59  const afw_utf8_t *object_type_id,
60  const afw_query_criteria_t *criteria,
61  afw_xctx_t *xctx);
62 
68  const afw_utf8_t * object_type_id,
69  const afw_utf8_t * id,
70  const afw_query_criteria_t * criteria,
71  afw_xctx_t *xctx);
72 
73 afw_boolean_t afw_lmdb_metadata_handles(
74  const afw_utf8_t *object_type_id);
75 
76 #endif /* __AFW_LMDB_METADATA_H__ */
#define AFW_BEGIN_DECLARES
Adaptive Framework LMDB Adaptor.
Adaptive Framework LMDB Adaptor Internal Header.
const afw_list_t * afw_lmdb_metadata_retrieve_objects(afw_lmdb_adaptor_session_t *self, const afw_utf8_t *object_type_id, const afw_query_criteria_t *criteria, afw_xctx_t *xctx)
Called by afw_lmdb_adaptor_session() to retrieve metadata objects.
const afw_object_t * afw_lmdb_metadata_get_object(afw_lmdb_adaptor_session_t *self, const afw_utf8_t *object_type_id, const afw_utf8_t *id, const afw_query_criteria_t *criteria, afw_xctx_t *xctx)
Called by afw_lmdb_adaptor_session() to get a metadata object.
void afw_lmdb_metadata_refresh(afw_lmdb_adaptor_t *adaptor, afw_xctx_t *xctx)
Refreshes LMDB adaptors Metadata.
Adaptive Framework Minimal Header.
AFW String functions.
_Bool afw_boolean_t
Definition: afw_common.h:373
Interface afw_list public struct.
Interface afw_object public struct.
Interface afw_pool public struct.
Parsed query criteria.
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_xctx public struct.