Skip to content

Commit

Permalink
c.py: bubble up query_param_alias_int/vector_float32 to py #24
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-obx committed Apr 9, 2024
1 parent 660fc1f commit da1b9df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion objectbox/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,12 @@ def c_array_pointer(py_list: Union[List[Any], np.ndarray], c_type):
[OBX_query_p, obx_schema_id, obx_schema_id, ctypes.POINTER(ctypes.c_float),
ctypes.c_size_t])

# OBX_C_API obx_err obx_query_param_alias_int(OBX_query* query, const char* alias, int64_t value);
obx_query_param_alias_int = c_fn_rc('obx_query_param_alias_int', [OBX_query_p, ctypes.c_char_p, ctypes.c_int64])

# OBX_C_API obx_err obx_query_param_alias_vector_float32(OBX_query* query, const char* alias, const float* value, size_t element_count);
# TODO
obx_query_param_alias_vector_float32 = c_fn_rc('obx_query_param_alias_vector_float32',
[OBX_query_p, ctypes.c_char_p, ctypes.POINTER(ctypes.c_float), ctypes.c_size_t])

# OBX_C_API obx_err obx_qb_order(OBX_query_builder* builder, obx_schema_id property_id, OBXOrderFlags flags);
obx_qb_order = c_fn_rc('obx_qb_order', [OBX_query_builder_p, obx_schema_id, OBXOrderFlags])
Expand Down

0 comments on commit da1b9df

Please sign in to comment.