duckdb 0.3.2-dev5.0 → 0.3.2-dev50.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/package.json +1 -1
- package/src/duckdb.cpp +887 -544
- package/src/duckdb.hpp +11 -4
package/src/duckdb.hpp
CHANGED
|
@@ -10,8 +10,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
10
10
|
|
|
11
11
|
#pragma once
|
|
12
12
|
#define DUCKDB_AMALGAMATION 1
|
|
13
|
-
#define DUCKDB_SOURCE_ID "
|
|
14
|
-
#define DUCKDB_VERSION "0.3.2-
|
|
13
|
+
#define DUCKDB_SOURCE_ID "1f398ce3b"
|
|
14
|
+
#define DUCKDB_VERSION "0.3.2-dev50"
|
|
15
15
|
//===----------------------------------------------------------------------===//
|
|
16
16
|
// DuckDB
|
|
17
17
|
//
|
|
@@ -6014,8 +6014,9 @@ public:
|
|
|
6014
6014
|
static constexpr const int32_t MONTHS_PER_YEAR = 12;
|
|
6015
6015
|
static constexpr const int32_t MONTHS_PER_QUARTER = 3;
|
|
6016
6016
|
static constexpr const int32_t DAYS_PER_WEEK = 7;
|
|
6017
|
-
|
|
6018
|
-
|
|
6017
|
+
//! only used for interval comparison/ordering purposes, in which case a month counts as 30 days
|
|
6018
|
+
static constexpr const int64_t DAYS_PER_MONTH = 30;
|
|
6019
|
+
static constexpr const int64_t DAYS_PER_YEAR = 365;
|
|
6019
6020
|
static constexpr const int64_t MSECS_PER_SEC = 1000;
|
|
6020
6021
|
static constexpr const int32_t SECS_PER_MINUTE = 60;
|
|
6021
6022
|
static constexpr const int32_t MINS_PER_HOUR = 60;
|
|
@@ -6066,6 +6067,12 @@ public:
|
|
|
6066
6067
|
//! Returns the exact difference between two timestamps (days and seconds)
|
|
6067
6068
|
static interval_t GetDifference(timestamp_t timestamp_1, timestamp_t timestamp_2);
|
|
6068
6069
|
|
|
6070
|
+
//! Add an interval to a date
|
|
6071
|
+
static date_t Add(date_t left, interval_t right);
|
|
6072
|
+
//! Add an interval to a time. In case the time overflows or underflows, modify the date by the overflow.
|
|
6073
|
+
//! For example if we go from 23:00 to 02:00, we add a day to the date
|
|
6074
|
+
static dtime_t Add(dtime_t left, interval_t right, date_t &date);
|
|
6075
|
+
|
|
6069
6076
|
//! Comparison operators
|
|
6070
6077
|
static bool Equals(interval_t left, interval_t right);
|
|
6071
6078
|
static bool GreaterThan(interval_t left, interval_t right);
|