Skip to content

Commit

Permalink
add ColumnarBulkInserter::capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman82 committed Jun 10, 2022
1 parent db0420e commit 5ed2ccd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.44.1

* Add `ColumnarBulkInserter::capacity`.

## 0.44.0

* All methods on the `ResultSetMetaData` trait now require exclusive (`&mut`) references.
Expand Down
2 changes: 1 addition & 1 deletion odbc-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "odbc-api"
version = "0.44.0"
version = "0.44.1"
authors = ["Markus Klein"]
edition = "2021"
license = "MIT"
Expand Down
5 changes: 5 additions & 0 deletions odbc-api/src/columnar_bulk_inserter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ where
.as_view_mut((buffer_index + 1) as u16, self.statement.as_stmt_ref())
}
}

/// Maximum number of rows the buffer can hold at once.
pub fn capacity(&self) -> usize {
self.capacity
}
}

/// You can obtain a mutable slice of a column buffer which allows you to change its contents.
Expand Down
4 changes: 2 additions & 2 deletions odbcsv/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "odbcsv"
version = "0.4.8"
version = "0.4.9"
authors = ["Markus Klein"]
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -29,7 +29,7 @@ readme = "Readme.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
odbc-api = { version = "0.44.0", path = "../odbc-api" }
odbc-api = { version = "0.44.1", path = "../odbc-api" }
csv = "1.1.6"
anyhow = "1.0.57"
stderrlog = "0.5.1"
Expand Down
8 changes: 8 additions & 0 deletions odbcsv/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.4.9

* Updated dependencies

## 0.4.8

* Updated dependencies

## 0.4.7

* Updated dependencies
Expand Down

0 comments on commit 5ed2ccd

Please sign in to comment.