Skip to content

Commit e300f49

Browse files
committed
updated docs and bumped version
1 parent d01c743 commit e300f49

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Change Log
22

33
## [Unreleased]
4+
5+
## [0.4.0]
46
### Added
57
- Changelog.
68
- Explicit type casts options.
@@ -28,7 +30,8 @@
2830
### Added
2931
- Initial version of the package.
3032

31-
[Unreleased]: ../../compare/v0.3.0...HEAD
33+
[Unreleased]: ../../compare/v0.4.0...HEAD
34+
[0.4.0]: ../../compare/v0.3.0...v0.4.0
3235
[0.3.0]: ../../compare/v0.2.1...v0.3.0
3336
[0.2.1]: ../../compare/v0.2.0...v0.2.1
3437
[0.2.0]: ../../compare/v0.1.0...v0.2.0

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,22 @@ There are no plans to introduce breaking changes into the current API.
122122
easier to employ this mechanism rather than write a parser from
123123
scratch.
124124

125+
### pboExplicitCasts
126+
Some sql queries may fail due to ambiguous types. With this option
127+
enabled every expression will be explicitly casted to function
128+
argument types.
129+
130+
### pboOlderCallSyntax
131+
Since version `9.5` PostgreSQL supports `=>` for named notations in
132+
function calls. Older syntax `:=` is supported for backward
133+
compatibility.
134+
135+
### pboDebugQueries
136+
When enabled, every generated function will print to `stdout`
137+
arguments passed to it. Note, this will fail (compile-time) for
138+
types without `Show` instances.
139+
140+
125141
## Automated generation
126142
It can be tedious to manually maintain consistent function declarations
127143
across the codebase. More convenient way is to automatically generate module

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
}:
55
mkDerivation {
66
pname = "postgresql-simple-bind";
7-
version = "0.3.0.0";
7+
version = "0.4.0";
88
src = ./.;
99
libraryHaskellDepends = [
1010
attoparsec base bytestring data-default exceptions heredoc

postgresql-simple-bind.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: postgresql-simple-bind
2-
version: 0.3.0.0
2+
version: 0.4.0
33
synopsis: FFI-like bindings for PostgreSQL stored functions
44
description: For tutorial see here: https:\/\/github.com\/zohl\/postgresql-simple-bind\/blob\/master\/README.md
55
license: BSD3
@@ -88,7 +88,7 @@ test-suite examples
8888
main-is: Main.hs
8989
default-language: Haskell2010
9090

91-
ghc-options: -Wall -Wno-redundant-constraints -ddump-splices
91+
ghc-options: -Wall -Wno-redundant-constraints
9292

9393
if flag(build-examples)
9494
build-depends: base >= 4.7 && < 5.0

0 commit comments

Comments
 (0)