Commit Graph

149 Commits

Author SHA1 Message Date
Tomasz Rybarczyk
5f075fa697 Actually ignore package-lock.json 2019-10-18 11:50:40 +02:00
Tomasz Rybarczyk
71c057d694 Ignore package-lock.json as this is a library 2019-10-18 11:49:13 +02:00
Tomasz Rybarczyk
006c671a48 v3.0.0-alpha → v3.0.0 2019-10-18 11:42:32 +02:00
Tomasz Rybarczyk
ef3bff13e7 Bump deps 2019-10-18 11:41:49 +02:00
Tomasz Rybarczyk
8716f002e1 Setup project name in spago 2019-10-18 11:40:28 +02:00
Tomasz Rybarczyk
237d131859 Update meta data in spago.dhall 2019-10-18 11:35:52 +02:00
Tomasz Rybarczyk
67960570a5 Drop pg import from Value.js so typeclasses are accessible for frontend JS. 2019-09-30 11:11:05 +02:00
paluh
60894e9f23
Merge pull request #41 from Kamirus/drop-PG-type
Drop PG type, alter PG functions to use typeclass constraints
2019-08-30 21:23:29 +02:00
Kamirus
6ce8b99ecd README update; withConnection and withTransaction flipped parameter 2019-08-30 12:15:05 +02:00
Kamirus
4f89eadfbc revert package.json removal; drop pulp, use spago 2019-08-30 12:10:18 +02:00
Kamirus
ec1f6e447d drop PG type and change functions in PG module; some test changes; no README fix 2019-08-28 17:00:36 +02:00
paluh
86a431c744
Merge pull request #37 from JordanMartinez/master
Add spago support
2019-07-28 10:42:37 +02:00
Jordan Martinez
fa843a350f Update API due to breaking change 2019-07-27 13:22:14 -07:00
Jordan Martinez
d184c78e24 Ignore psc-* files 2019-07-25 18:51:19 -07:00
Jordan Martinez
c11aa9be44 Convert project to Spago 2019-07-25 18:48:52 -07:00
Jordan Martinez
23c186ec6a Ignore .spago directory 2019-07-25 18:47:59 -07:00
Tomasz Rybarczyk
45d6356fd8 Drop problematic newtype instances and provide helpers instead 2019-07-05 16:42:00 +02:00
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