aboutsummaryrefslogtreecommitdiff
path: root/src/pq/pq_common.h
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-28 16:19:21 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-28 16:19:21 +0200
commit94e5193bffd5b2107710ba4fab0405ba22ea6dcf (patch)
tree03204300c92e44808e86ad86ccb6872d15b0b0a0 /src/pq/pq_common.h
parent1c923855a31b35e28706ba2fafa2d2bccc7ee775 (diff)
downloadexchange-94e5193bffd5b2107710ba4fab0405ba22ea6dcf.tar.xz
[pq] added helper to load oids of composite types
- TALER_PQ_load_oids_for_composite_types added - Called during postgres-initialization
Diffstat (limited to 'src/pq/pq_common.h')
-rw-r--r--src/pq/pq_common.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/pq/pq_common.h b/src/pq/pq_common.h
index 36ba62a40..79c9d83ca 100644
--- a/src/pq/pq_common.h
+++ b/src/pq/pq_common.h
@@ -48,20 +48,6 @@ enum TALER_PQ_ArrayType
};
/**
- * The header for a postgresql array in binary format. note that this a
- * simplified special case of the general structure (which contains pointers),
- * as we only support one-dimensional arrays.
- */
-struct TALER_PQ_ArrayHeader_P
-{
- uint32_t ndim; /* number of dimensions. we only support ndim = 1 */
- uint32_t has_null;
- uint32_t oid;
- uint32_t dim; /* size of the array */
- uint32_t lbound; /* index value of first element in the db (default: 1). */
-} __attribute__((packed));
-
-/**
* Memory representation of an taler amount record for Postgres.
*
* All values need to be in network-byte-order.
@@ -92,5 +78,6 @@ struct TALER_PQ_Amount_P
.f = htonl ((amount)->fraction) \
}
+
#endif /* TALER_PQ_COMMON_H_ */
/* end of pg/pq_common.h */