33 #include <aerospike/aerospike.h>
34 #include <aerospike/as_key.h>
35 #include <aerospike/as_operations.h>
36 #include <aerospike/as_record.h>
43 #define LOG(_fmt, _args...) { printf(_fmt "\n", ## _args); fflush(stdout); }
46 #define DETAIL(_fmt, _args...) { printf(_fmt "\n", ## _args); fflush(stdout); }
48 #define DETAIL(_fmt, _args...)
56 #define MAX_NAMESPACE_SIZE 32 // based on current server limit
57 #define MAX_SET_SIZE 64 // based on current server limit
81 #define EXAMPLE_BASIC_OPTS "h:p:n:s:k:"
82 #define EXAMPLE_MULTI_KEY_OPTS "h:p:n:s:K:"
94 const char* lua_user_path);
void example_dump_operations(const as_operations *p_ops)
char g_namespace[MAX_NAMESPACE_SIZE]
#define MAX_NAMESPACE_SIZE
void example_remove_index(aerospike *p_as, const char *index)
void example_dump_record(const as_record *p_rec)
bool example_read_test_records(aerospike *p_as)
bool example_read_test_record(aerospike *p_as)
bool example_get_opts(int argc, char *argv[], const char *which_opts)
bool example_remove_udf(aerospike *p_as, const char *filename)
void example_connect_to_aerospike_with_udf_config(aerospike *p_as, const char *lua_user_path)
bool example_create_integer_index(aerospike *p_as, const char *bin, const char *index)
void example_remove_test_record(aerospike *p_as)
void example_connect_to_aerospike(aerospike *p_as)
bool example_register_udf(aerospike *p_as, const char *filename)
void example_remove_test_records(aerospike *p_as)
void example_cleanup(aerospike *p_as)