duckdb 0.5.2-dev1545.0 → 0.5.2-dev1575.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/duckdb.hpp CHANGED
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
11
11
  #pragma once
12
12
  #define DUCKDB_AMALGAMATION 1
13
13
  #define DUCKDB_AMALGAMATION_EXTENDED 1
14
- #define DUCKDB_SOURCE_ID "d40d997a29"
15
- #define DUCKDB_VERSION "v0.5.2-dev1545"
14
+ #define DUCKDB_SOURCE_ID "e7d035edf9"
15
+ #define DUCKDB_VERSION "v0.5.2-dev1575"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -15795,6 +15795,16 @@ If the conversion fails because the double value is too big the result will be 0
15795
15795
  */
15796
15796
  DUCKDB_API duckdb_hugeint duckdb_double_to_hugeint(double val);
15797
15797
 
15798
+ /*!
15799
+ Converts a double value to a duckdb_decimal object.
15800
+
15801
+ If the conversion fails because the double value is too big, or the width/scale are invalid the result will be 0.
15802
+
15803
+ * val: The double value.
15804
+ * returns: The converted `duckdb_decimal` element.
15805
+ */
15806
+ DUCKDB_API duckdb_decimal duckdb_double_to_decimal(double val, uint8_t width, uint8_t scale);
15807
+
15798
15808
  //===--------------------------------------------------------------------===//
15799
15809
  // Decimal Helpers
15800
15810
  //===--------------------------------------------------------------------===//
@@ -15908,6 +15918,11 @@ Binds an duckdb_hugeint value to the prepared statement at the specified index.
15908
15918
  */
15909
15919
  DUCKDB_API duckdb_state duckdb_bind_hugeint(duckdb_prepared_statement prepared_statement, idx_t param_idx,
15910
15920
  duckdb_hugeint val);
15921
+ /*!
15922
+ Binds a duckdb_decimal value to the prepared statement at the specified index.
15923
+ */
15924
+ DUCKDB_API duckdb_state duckdb_bind_decimal(duckdb_prepared_statement prepared_statement, idx_t param_idx,
15925
+ duckdb_decimal val);
15911
15926
 
15912
15927
  /*!
15913
15928
  Binds an uint8_t value to the prepared statement at the specified index.