Skip to content

Commit 626ad5b

Browse files
authored
Merge pull request #84 from PgBulkInsert/add-time-mapping
Issue #83 Add Time Mapping to RowWriter
2 parents d4e3186 + 6ffbe2f commit 626ad5b

7 files changed

Lines changed: 18 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG #
22

3+
## 6.0.1 ##
4+
5+
* Adding ``SimpleRow#setTime`` for mapping ``LocalTime``
6+
37
## 6.0.0 ##
48

59
This release saw major improvements and some breaking changes. The release is

PgBulkInsert/pgbulkinsert-bulkprocessor/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>de.bytefish.pgbulkinsert</groupId>
1010
<artifactId>pgbulkinsert-parent</artifactId>
11-
<version>6.0.0</version>
11+
<version>6.0.1</version>
1212
<relativePath>..</relativePath>
1313
</parent>
1414

PgBulkInsert/pgbulkinsert-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>de.bytefish.pgbulkinsert</groupId>
1010
<artifactId>pgbulkinsert-parent</artifactId>
11-
<version>6.0.0</version>
11+
<version>6.0.1</version>
1212
<relativePath>..</relativePath>
1313
</parent>
1414

PgBulkInsert/pgbulkinsert-jpa/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>de.bytefish.pgbulkinsert</groupId>
1010
<artifactId>pgbulkinsert-parent</artifactId>
11-
<version>6.0.0</version>
11+
<version>6.0.1</version>
1212
<relativePath>..</relativePath>
1313
</parent>
1414

PgBulkInsert/pgbulkinsert-rowwriter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>de.bytefish.pgbulkinsert</groupId>
1010
<artifactId>pgbulkinsert-parent</artifactId>
11-
<version>6.0.0</version>
11+
<version>6.0.1</version>
1212
<relativePath>..</relativePath>
1313
</parent>
1414

PgBulkInsert/pgbulkinsert-rowwriter/src/main/java/de/bytefish/pgbulkinsert/row/SimpleRow.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import java.net.Inet6Address;
1616
import java.time.LocalDate;
1717
import java.time.LocalDateTime;
18+
import java.time.LocalTime;
1819
import java.time.ZonedDateTime;
1920
import java.util.*;
2021
import java.util.function.Consumer;
@@ -154,6 +155,14 @@ public void setDouble(int ordinal, Double value) {
154155

155156
// region Temporal
156157

158+
protected void setTime(String columnName, LocalTime value) {
159+
setValue(columnName, DataType.Time, value);
160+
}
161+
162+
protected void setTime(int ordinal, LocalTime value) {
163+
setValue(ordinal, DataType.Time, value);
164+
}
165+
157166
public void setDate(String columnName, LocalDate value) {
158167
setValue(columnName, DataType.Date, value);
159168
}

PgBulkInsert/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>de.bytefish.pgbulkinsert</groupId>
88
<artifactId>pgbulkinsert-parent</artifactId>
99
<packaging>pom</packaging>
10-
<version>6.0.0</version>
10+
<version>6.0.1</version>
1111
<name>pgbulkinsert</name>
1212
<description>PgBulkInsert is a Java library for Bulk Inserts with PostgreSQL.</description>
1313
<url>http://www.github.com/bytefish/PgBulkInsert</url>

0 commit comments

Comments
 (0)