@@ -78,7 +78,7 @@ typedef enum line_sender_error_code
78
78
/** Bad configuration. */
79
79
line_sender_error_config_error ,
80
80
81
- /** Currently, only arrays with a maximum 32 dimensions are supported . */
81
+ /** QuestDB supports arrays of up to 32 dimensions. */
82
82
line_sender_error_array_large_dim ,
83
83
84
84
/** ArrayView internal error, such as failure to get the size of a valid
@@ -413,6 +413,7 @@ line_sender_buffer_view line_sender_buffer_peek(
413
413
414
414
/**
415
415
* Start recording a new row for the given table.
416
+ *
416
417
* @param[in] buffer Line buffer object.
417
418
* @param[in] name Table name.
418
419
*/
@@ -425,6 +426,7 @@ bool line_sender_buffer_table(
425
426
/**
426
427
* Record a symbol value for the given column.
427
428
* Make sure you record all the symbol columns before any other column type.
429
+ *
428
430
* @param[in] buffer Line buffer object.
429
431
* @param[in] name Column name.
430
432
* @param[in] value Column value.
@@ -440,6 +442,7 @@ bool line_sender_buffer_symbol(
440
442
441
443
/**
442
444
* Record a boolean value for the given column.
445
+ *
443
446
* @param[in] buffer Line buffer object.
444
447
* @param[in] name Column name.
445
448
* @param[in] value Column value.
@@ -455,6 +458,7 @@ bool line_sender_buffer_column_bool(
455
458
456
459
/**
457
460
* Record an integer value for the given column.
461
+ *
458
462
* @param[in] buffer Line buffer object.
459
463
* @param[in] name Column name.
460
464
* @param[in] value Column value.
@@ -470,6 +474,7 @@ bool line_sender_buffer_column_i64(
470
474
471
475
/**
472
476
* Record a floating-point value for the given column.
477
+ *
473
478
* @param[in] buffer Line buffer object.
474
479
* @param[in] name Column name.
475
480
* @param[in] value Column value.
@@ -485,6 +490,7 @@ bool line_sender_buffer_column_f64(
485
490
486
491
/**
487
492
* Record a string value for the given column.
493
+ *
488
494
* @param[in] buffer Line buffer object.
489
495
* @param[in] name Column name.
490
496
* @param[in] value Column value.
@@ -499,19 +505,19 @@ bool line_sender_buffer_column_str(
499
505
line_sender_error * * err_out );
500
506
501
507
/**
502
- * Record a multidimensional array of double for the given column.
508
+ * Record a multidimensional array of ` double` values for the given column.
503
509
*
504
- * This API uses BYTE-LEVEL STRIDES where the stride values represent the
505
- * number of bytes between consecutive elements along each dimension.
510
+ * The values in the `strides` parameter represent the number of bytes
511
+ * between consecutive elements along each dimension.
506
512
*
507
513
* @param[in] buffer Line buffer object.
508
514
* @param[in] name Column name.
509
515
* @param[in] rank Number of dimensions of the array.
510
516
* @param[in] shape Array of dimension sizes (length = `rank`).
511
- * Each element must be a positive integer.
512
- * @param[in] strides Array strides.
513
- * @param[in] data_buffer First array element data .
514
- * @param[in] data_buffer_len Bytes length of the array data.
517
+ * Each element must be a positive integer.
518
+ * @param[in] strides Array strides, in the unit of bytes. Strides can be negative .
519
+ * @param[in] data_buffer Array data, laid out according to the provided shape and strides .
520
+ * @param[in] data_buffer_len Length of the array data block in bytes .
515
521
* @param[out] err_out Set to an error object on failure (if non-NULL).
516
522
* @return true on success, false on error.
517
523
*/
@@ -527,19 +533,19 @@ bool line_sender_buffer_column_f64_arr_byte_strides(
527
533
line_sender_error * * err_out );
528
534
529
535
/**
530
- * Record a multidimensional array of double for the given column.
536
+ * Record a multidimensional array of ` double` values for the given column.
531
537
*
532
- * This function uses ELEMENT-LEVEL STRIDES where the stride values represent
533
- * the number of elements between consecutive elements along each dimension.
538
+ * The values in the `strides` parameter represent the number of elements
539
+ * between consecutive elements along each dimension.
534
540
*
535
541
* @param[in] buffer Line buffer object.
536
542
* @param[in] name Column name.
537
543
* @param[in] rank Number of dimensions of the array.
538
544
* @param[in] shape Array of dimension sizes (length = `rank`).
539
545
* Each element must be a positive integer.
540
- * @param[in] strides Array strides.
541
- * @param[in] data_buffer First array element data .
542
- * @param[in] data_buffer_len Bytes length of the array data.
546
+ * @param[in] strides Array strides, in the unit of elements. Strides can be negative .
547
+ * @param[in] data_buffer Array data, laid out according to the provided shape and strides .
548
+ * @param[in] data_buffer_len Length of the array data block in bytes .
543
549
* @param[out] err_out Set to an error object on failure (if non-NULL).
544
550
* @return true on success, false on error.
545
551
*/
@@ -556,6 +562,7 @@ bool line_sender_buffer_column_f64_arr_elem_strides(
556
562
557
563
/**
558
564
* Record a nanosecond timestamp value for the given column.
565
+ *
559
566
* @param[in] buffer Line buffer object.
560
567
* @param[in] name Column name.
561
568
* @param[in] nanos The timestamp in nanoseconds since the Unix epoch.
@@ -571,6 +578,7 @@ bool line_sender_buffer_column_ts_nanos(
571
578
572
579
/**
573
580
* Record a microsecond timestamp value for the given column.
581
+ *
574
582
* @param[in] buffer Line buffer object.
575
583
* @param[in] name Column name.
576
584
* @param[in] micros The timestamp in microseconds since the Unix epoch.
@@ -711,6 +719,7 @@ line_sender_opts* line_sender_opts_from_env(line_sender_error** err_out);
711
719
/**
712
720
* Create a new `line_sender_opts` instance with the given protocol,
713
721
* hostname and port.
722
+ *
714
723
* @param[in] protocol The protocol to use.
715
724
* @param[in] host The QuestDB database host.
716
725
* @param[in] port The QuestDB ILP TCP port.
@@ -1058,6 +1067,7 @@ bool line_sender_flush(
1058
1067
*
1059
1068
* To send and clear in one step, call `line_sender_flush` instead. Also,
1060
1069
* see the docs on that function for more important details on flushing.
1070
+ *
1061
1071
* @param[in] sender Line sender object.
1062
1072
* @param[in] buffer Line buffer object.
1063
1073
* @return true on success, false on error.
0 commit comments