Skip to content

Commit

Permalink
Merge pull request #4 from allegro/feat/add-support-for-uuid-type-in-…
Browse files Browse the repository at this point in the history
…binary-copy-client

Add support for uuid type in binary copy client
  • Loading branch information
jakub-bobek authored Oct 26, 2022
2 parents a383bae + 52eaff4 commit 7fdde4b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ public enum DbType
BigInt,
Text,
Date,
Decimal
Decimal,
Guid,
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private static NpgsqlDbType GetNpgsqlDbType(DbType dbType)
DbType.Text => NpgsqlDbType.Text,
DbType.Date => NpgsqlDbType.Date,
DbType.Decimal => NpgsqlDbType.Numeric,
DbType.Guid => NpgsqlDbType.Uuid,
_ => throw new ArgumentOutOfRangeException(nameof(dbType), dbType, "Unknown type")
};
}
Expand Down
6 changes: 6 additions & 0 deletions src/Allegro.Extensions.Dapper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.0] - 2022-10-26

### Added

* Add support for uuid type in binary copy client.

## [1.1.0] - 2022-05-06

### Removed
Expand Down
2 changes: 1 addition & 1 deletion src/Allegro.Extensions.Dapper/version.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>1.1.0</VersionPrefix>
<VersionPrefix>1.2.0</VersionPrefix>
</PropertyGroup>
</Project>

0 comments on commit 7fdde4b

Please sign in to comment.