Skip to content

Commit b65ed80

Browse files
authored
VER: Release 0.43.0
2 parents 816cc23 + 3fe1fbb commit b65ed80

File tree

13 files changed

+41
-23
lines changed

13 files changed

+41
-23
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.43.0 - 2025-10-21
4+
5+
### Enhancements
6+
- Made `Unset` a fully-supported variant of `SystemCode` and `ErrorCode`
7+
8+
### Breaking changes
9+
- Removed `mode` parameter in `Historical::MetadataGetCost()`
10+
311
## 0.42.0 - 2025-08-19
412

513
### Enhancements

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.24..4.0)
66

77
project(
88
databento
9-
VERSION 0.42.0
9+
VERSION 0.43.0
1010
LANGUAGES CXX
1111
DESCRIPTION "Official Databento client library"
1212
)

cmake/StandardSettings.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ option(${PROJECT_NAME_UPPERCASE}_ENABLE_TSAN "Enable thread sanitizer." OFF)
4343
option(${PROJECT_NAME_UPPERCASE}_ENABLE_UBSAN "Enable undefined behavior sanitizer." OFF)
4444

4545
#
46-
# Miscelanious options
46+
# Miscellaneous options
4747
#
4848

4949
# Generate compile_commands.json for clang based tools

cmake/Utils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function(verbose_message content)
1010
endfunction()
1111

1212
#
13-
# Add a target for formating the project using `clang-format` (i.e: cmake --build build --target clang-format)
13+
# Add a target for formatting the project using `clang-format` (i.e: cmake --build build --target clang-format)
1414
#
1515

1616
function(add_clang_format_target)

include/databento/dbn.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ struct Metadata {
7676
// This method is useful when working with a historical request over a single
7777
// day or in other situations where you're sure the mappings don't change
7878
// during the time range of the request. Otherwise, `SymbolMap()` is
79-
// recommmended.
79+
// recommended.
8080
PitSymbolMap CreateSymbolMapForDate(date::year_month_day date) const;
8181
// Creates a symbology mapping from instrument ID and date to text symbol.
8282
TsSymbolMap CreateSymbolMap() const;

include/databento/detail/buffer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Buffer : public IReadable, public IWritable {
4343
std::byte* ReadEnd() { return write_pos_; }
4444
const std::byte* ReadBegin() const { return read_pos_; }
4545
const std::byte* ReadEnd() const { return write_pos_; }
46-
// Indicate how mnay bytes were read
46+
// Indicate how many bytes were read
4747
void Consume(std::size_t length) {
4848
read_pos_ += length;
4949
if (static_cast<std::size_t>(read_pos_ - buf_.get()) > (Capacity() / 2)) {

include/databento/enums.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,8 @@ enum ErrorCode : std::uint8_t {
609609
InvalidSubscription = 5,
610610
// An error occurred in the gateway.
611611
InternalError = 6,
612+
// No error code was specified or this record was upgraded from a version 1 struct
613+
// where the code field didn't exist.
612614
Unset = 255,
613615
};
614616
} // namespace error_code
@@ -630,6 +632,8 @@ enum SystemCode : std::uint8_t {
630632
// Signals that all records for interval-based schemas have been published for the
631633
// given timestamp.
632634
EndOfInterval = 4,
635+
// No system code was specified or this record was upgraded from a version 1 struct
636+
// where the code field didn't exist.
633637
Unset = 255,
634638
};
635639
} // namespace system_code

include/databento/historical.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Historical {
8484
* Metadata API
8585
*/
8686

87-
// Retrievs a mapping of publisher name to publisher ID.
87+
// Retrieves a mapping of publisher name to publisher ID.
8888
std::vector<PublisherDetail> MetadataListPublishers();
8989
std::vector<std::string> MetadataListDatasets();
9090
std::vector<std::string> MetadataListDatasets(const DateRange& date_range);
@@ -139,11 +139,11 @@ class Historical {
139139
double MetadataGetCost(const std::string& dataset,
140140
const DateTimeRange<UnixNanos>& datetime_range,
141141
const std::vector<std::string>& symbols, Schema schema,
142-
FeedMode mode, SType stype_in, std::uint64_t limit);
142+
SType stype_in, std::uint64_t limit);
143143
double MetadataGetCost(const std::string& dataset,
144144
const DateTimeRange<std::string>& datetime_range,
145145
const std::vector<std::string>& symbols, Schema schema,
146-
FeedMode mode, SType stype_in, std::uint64_t limit);
146+
SType stype_in, std::uint64_t limit);
147147

148148
/*
149149
* Symbology API

pkg/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Databento <[email protected]>
22
_pkgname=databento-cpp
33
pkgname=databento-cpp-git
4-
pkgver=0.42.0
4+
pkgver=0.43.0
55
pkgrel=1
66
pkgdesc="Official C++ client for Databento"
77
arch=('any')

src/enums.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,9 @@ const char* ToString(ErrorCode error_code) {
776776
case ErrorCode::InternalError: {
777777
return "internal_error";
778778
}
779+
case ErrorCode::Unset: {
780+
return "unset";
781+
}
779782
default: {
780783
return "Unknown";
781784
}
@@ -798,6 +801,9 @@ const char* ToString(SystemCode system_code) {
798801
case SystemCode::EndOfInterval: {
799802
return "end_of_interval";
800803
}
804+
case SystemCode::Unset: {
805+
return "unset";
806+
}
801807
default: {
802808
return "Unknown";
803809
}
@@ -1219,6 +1225,9 @@ ErrorCode FromString(const std::string& str) {
12191225
if (str == "internal_error") {
12201226
return ErrorCode::InternalError;
12211227
}
1228+
if (str == "unset") {
1229+
return ErrorCode::Unset;
1230+
}
12221231
throw InvalidArgumentError{"FromString<ErrorCode>", "str",
12231232
"unknown value '" + str + '\''};
12241233
}
@@ -1239,6 +1248,9 @@ SystemCode FromString(const std::string& str) {
12391248
if (str == "end_of_interval") {
12401249
return SystemCode::EndOfInterval;
12411250
}
1251+
if (str == "unset") {
1252+
return SystemCode::Unset;
1253+
}
12421254
throw InvalidArgumentError{"FromString<SystemCode>", "str",
12431255
"unknown value '" + str + '\''};
12441256
}

0 commit comments

Comments
 (0)