Tomasz Rybarczyk
351a91af68
Default to newtype in *SQLValue
classes instance chains.
2019-07-05 16:17:04 +02:00
Tomasz Rybarczyk
bd67de30a1
Update docs
2019-05-07 20:16:59 +02:00
Tomasz Rybarczyk
4d8dfd4c00
Update .gitignore
2018-12-22 20:51:08 +01:00
Tomasz Rybarczyk
600c643738
Hoist to correct monad in PG.hoist*
2018-12-22 19:52:37 +01:00
Tomasz Rybarczyk
df492b108d
Improve test debug log
2018-12-22 19:47:31 +01:00
Tomasz Rybarczyk
bd055928ae
More polymorphic hoist functions
2018-12-22 18:32:24 +01:00
Tomasz Rybarczyk
07e1c0924b
More fine grained hoist function
2018-12-16 20:02:24 +01:00
Tomasz Rybarczyk
a04090da0b
Fix coding style
2018-12-16 18:58:02 +01:00
Tomasz Rybarczyk
280320b553
Add hoistPG function
2018-12-16 18:55:37 +01:00
Tomasz Rybarczyk
a6deace1cb
Make tests pass
2018-12-16 18:35:58 +01:00
Tomasz Rybarczyk
6f2b198d02
Move PG
into separate module
2018-12-16 18:05:49 +01:00
Tomasz Rybarczyk
87d6f7fc95
Drop ExceptT
from functions
2018-12-09 21:50:13 +01:00
Tomasz Rybarczyk
71bbf44227
Add AUTHORS file
2018-12-06 20:30:38 +01:00
Tomasz Rybarczyk
3e074d1c0c
Make tests pass
2018-12-06 20:14:08 +01:00
Tomasz Rybarczyk
111790af84
Let newPool
run in Effect
monad
2018-12-06 20:08:48 +01:00
paluh
b6f3e11a5d
Merge pull request #30 from Kamirus/master
...
nested tuple with one element: Tuple a Unit
2018-12-03 19:10:13 +01:00
paluh
89e3282ba6
Merge branch 'master' into master
2018-12-03 19:10:02 +01:00
paluh
718d0c45bf
Merge pull request #29 from akheron/error-handling
...
Implement monadic error handling, get rid of JavaScript exceptions
2018-12-03 19:06:39 +01:00
Petri Lehtinen
de6404b82f
Make ffiUnsafeQuery better typed, fix indentation
2018-11-30 08:35:29 +02:00
Petri Lehtinen
55d3ddd1bb
Address test comments
2018-11-30 08:31:18 +02:00
Petri Lehtinen
331b681bbf
Revisit docstrings
2018-11-19 08:25:59 +02:00
Kamirus
e9d9e4ea0f
nested tuple with one element: Tuple a Unit; and test
2018-11-16 13:46:19 +01:00
Petri Lehtinen
10a868b166
Implement monadic error handling, get rid of JavaScript exceptions
...
- Add `PGError` type to model different errors that can happen when
querying PostgreSQL. The mapping from SQLSTATE to error was inspired
by `psycopg2`.
- Run all actions in a new `PG` monad, which is just `Aff` stacked
with `ExceptT PGError` to provide monadic error handling. Any errors
caused by database access are not thrown as JavaScript exceptions
anymore.
- While at it, remove some duplication between `query` and `command`
by reusing `ffiUnsafeQuery` in both cases.
2018-11-16 13:40:30 +02:00
Tomasz Rybarczyk
2fa1c0551e
v2.4.4
2018-10-22 18:20:30 +02:00
paluh
1fd636dc1e
Merge pull request #27 from akheron/fix-purs-bundle
...
FFI: Fix `purs bundle` output
2018-10-22 16:54:54 +02:00
paluh
59542259ff
Merge pull request #28 from bouzuya/fix-link
...
README: fix links
2018-10-22 16:54:00 +02:00
Petri Lehtinen
ab46bbf47f
Fix purs bundle
output
...
`purs bundle` (used by e.g. `pulp build`) fails to output `DATE_OID`
in the output bundle due to some dead code elimination bug/feature, so
an app using `purescript-postgresql-client` fails to start.
Remove `DATE_OID` and use its value inline instead.
2018-10-22 12:46:51 +03:00
bouzuya
98329846d2
fix links
2018-10-22 10:27:35 +09:00
Tomasz Rybarczyk
943368875b
v2.4.3
2018-10-21 17:59:42 +02:00
Tomasz Rybarczyk
d07a05f558
Drop custom test script and use npm scripts
for this purpose.
2018-10-21 17:58:51 +02:00
Tomasz Rybarczyk
b0809de370
v2.4.2
2018-10-21 11:51:25 +02:00
Tomasz Rybarczyk
1d75dd5644
README: Add withTransaction
to the docs.
2018-10-21 11:50:20 +02:00
Tomasz Rybarczyk
f7f2e3c960
README: minor improvements
2018-10-21 11:41:25 +02:00
Tomasz Rybarczyk
51cfe5b6ff
README: Improve formatting
2018-10-21 11:39:25 +02:00
Tomasz Rybarczyk
58de927019
v2.4.1
2018-10-21 04:32:14 +02:00
Tomasz Rybarczyk
549e9db342
bower.json: Update deps
2018-10-21 04:31:41 +02:00
Tomasz Rybarczyk
ac3fe8bf8c
v2.4.0
2018-10-21 04:31:16 +02:00
Tomasz Rybarczyk
fffd34d4e1
s/Guide/Example/
2018-10-21 04:30:23 +02:00
Tomasz Rybarczyk
2210e1f8a6
.gitignore: Add test/Example.purs
2018-10-21 04:29:18 +02:00
Tomasz Rybarczyk
48dabc51c2
README: Typo
2018-10-21 04:22:55 +02:00
Tomasz Rybarczyk
8248270a7f
README: Finish example
2018-10-21 04:22:16 +02:00
Tomasz Rybarczyk
8da7364758
README: Style
2018-10-21 03:58:45 +02:00
Tomasz Rybarczyk
fa18cc86e2
README: Cleanup
2018-10-21 03:57:46 +02:00
Tomasz Rybarczyk
85e01d38fe
README: add query
usage example
2018-10-21 03:56:11 +02:00
Tomasz Rybarczyk
e21bd27173
README: Add "Testing" section
2018-10-21 03:32:06 +02:00
Tomasz Rybarczyk
751ced6d76
Make most fields optional in PoolConfiguration
2018-10-21 03:24:58 +02:00
Tomasz Rybarczyk
8683419e85
Allow nested tuples to be used as query rows
2018-10-21 03:20:58 +02:00
Tomasz Rybarczyk
c0ac46c00a
Improve command
docs
2018-10-20 22:34:00 +02:00
Tomasz Rybarczyk
2da6a3a767
Add command
function returning command tag value of a query
2018-10-20 22:34:00 +02:00
paluh
3363bffce8
Merge pull request #26 from akheron/issue-24
...
WIP: Avoid `UnhandledPromiseRejectionWarning` on integrity errors
2018-10-20 20:35:29 +02:00