Commit Graph

178 Commits

Author SHA1 Message Date
Nikita Volkov
8336379a91 The TxStream type alias 2014-12-29 12:21:01 +03:00
Nikita Volkov
23cf4b9420 Rename "SEx" to "Ex", since we're not teenagers here 2014-12-29 12:20:44 +03:00
Nikita Volkov
9607cf8637 Statement executor 2014-12-29 11:59:00 +03:00
Nikita Volkov
f449ddc67a Accommodate to the new backend API 2014-12-29 11:58:53 +03:00
Nikita Volkov
284b5b74e0 RowParser -> CxRow 2014-12-29 11:58:53 +03:00
Nikita Volkov
260425abed Instances for PoolSettings 2014-12-29 11:58:53 +03:00
Nikita Volkov
14c8601fab Add 'singleTx', update docs, rename UnparsableResult to ResultError 2014-12-28 04:04:50 +03:00
Nikita Volkov
0015dd5501 Implement "listTx" 2014-12-28 03:45:53 +03:00
Nikita Volkov
40326f33e0 Reimplement "maybeTx" in terms of "vectorTx" 2014-12-28 03:44:53 +03:00
Nikita Volkov
8d688d82e2 Docs correction 2014-12-28 03:38:35 +03:00
Nikita Volkov
84d11c5606 TxError -> SessionError 2014-12-28 02:32:44 +03:00
Nikita Volkov
ed11b5e48d Cancel the MonadError instance for Tx, since as it turns out, Postgres won't support it 2014-12-28 01:32:26 +03:00
Nikita Volkov
ab2d2df238 Session MFunctor instance 2014-12-28 00:54:29 +03:00
Nikita Volkov
073acd578d Explicit instance of MonadError for Tx 2014-12-27 20:38:41 +03:00
Nikita Volkov
c02ba95858 Export MaybeT in Prelude 2014-12-27 20:38:23 +03:00
Nikita Volkov
9572af05ad Clean up whitespace during the quasi-quote parsing 2014-12-27 07:18:04 +03:00
Nikita Volkov
ab44c1bb20 A shortcut for empty vectors generation 2014-12-27 06:33:47 +03:00
Nikita Volkov
95c6996599 Make Session a newtype 2014-12-27 06:17:24 +03:00
Nikita Volkov
e8089b6991 Rename "q" to more meaningful "stmt" 2014-12-27 05:32:33 +03:00
Nikita Volkov
aabe5507ab Reintroduce Session and fix Demo 2014-12-27 05:31:47 +03:00
Nikita Volkov
39970138fa A complete overhaul 2014-12-27 03:43:49 +03:00
Nikita Volkov
ac620b05f4 Merge branch '0.4'
* 0.4:
  Release
  Fix the bug
  Reproduce the bug in a test
  Switch to the "hspec" testing framework
  Begin a changes log (#18)
  Update Demo
2014-12-18 02:33:12 +03:00
Nikita Volkov
eb0163c6d8 Fix the bug 2014-12-18 02:18:07 +03:00
Nikita Volkov
caaa53569d Update the deps on "list-t" and "monad-control" 2014-12-15 13:29:45 +03:00
Nikita Volkov
c4f064ddb0 Avoid "mtl-prelude" and update the "transformers" bounds 2014-11-30 02:40:09 +03:00
Nikita Volkov
e13d21aa38 Detect the semicolons with the quasi-quoter 2014-11-30 00:43:06 +03:00
Nikita Volkov
746b934bbe Fix the "list-t" dep 2014-11-29 22:23:29 +03:00
Nikita Volkov
93a1185a91 Merge branch 'master' into 0.3
* master:
  Remove Bug from the Unit instance of RowParser
  Update the "list-t" bounds
2014-11-29 20:23:58 +03:00
Nikita Volkov
f3c907382a Remove Bug from the Unit instance of RowParser 2014-11-29 20:22:17 +03:00
Nikita Volkov
8c40ec158e Docs 2014-11-29 20:13:21 +03:00
Nikita Volkov
03373ff8f5 Docs 2014-11-25 15:49:25 +03:00
Nikita Volkov
78d8cb7275 Merge branch 'issue-10'
* issue-10:
  Increment the minor version
  Fix issue #10
2014-11-23 20:42:16 +03:00
Nikita Volkov
68b25b5ed1 Fix issue #10 2014-11-23 19:54:11 +03:00
Nikita Volkov
a76c6ec1e1 Docs 2014-11-23 17:08:05 +03:00
Nikita Volkov
0c03eb32bc Instances for "Session" 2014-11-23 15:14:15 +03:00
Nikita Volkov
0492ab8546 Implement "sessionUnlifter" (Fixes the issue #11) 2014-11-23 14:46:13 +03:00
Nikita Volkov
93f0ffedd8 Fix the quasi-quoter 2014-11-18 12:19:27 +03:00
Nikita Volkov
e07ac5b621 Docs correction 2014-11-13 21:12:42 +03:00
Nikita Volkov
109c14ee80 Standardize constraints 2014-11-13 00:43:39 +03:00
Nikita Volkov
8409c3ae75 Refactoring 2014-11-11 00:06:36 +03:00
Nikita Volkov
1332b3e315 Show and Eq for Error 2014-11-10 13:48:17 +03:00
Nikita Volkov
caa84166bd Typo 2014-10-29 14:46:36 +04:00
Nikita Volkov
ec667045bd Typo 2014-10-29 14:24:57 +04:00
Nikita Volkov
5da25e2887 Polishing 2014-10-28 20:22:05 +04:00
Nikita Volkov
5e22ec65e5 Update docs 2014-10-28 18:46:12 +04:00
Nikita Volkov
d1e9235b03 Update the docs and the Cabal file 2014-10-28 16:34:05 +04:00
Nikita Volkov
d4a6c0aebd Remove SCCs 2014-10-27 15:19:57 +04:00
Nikita Volkov
dc21a81d36 Accomodate the RC7 API of the backend 2014-10-25 23:46:39 +04:00
Nikita Volkov
89b92bdfa0 Accomodate to the RC6 backend API 2014-10-25 23:46:08 +04:00
Nikita Volkov
45becba225 Accomodate to the RC5 backend API 2014-10-25 22:25:46 +04:00
Nikita Volkov
47d86b91f2 Optimize the row parser a bit 2014-10-25 19:39:23 +04:00
Nikita Volkov
aed09f367d Accomodate the backend API RC4 2014-10-25 16:32:25 +04:00
Nikita Volkov
2013640f14 Accomodate to the backend API RC3 2014-10-25 15:56:33 +04:00
Nikita Volkov
f72d626e6f Remove the dependency on "hashable" 2014-10-24 00:36:30 +04:00
Nikita Volkov
4bcf7d4c5c Simplify the QQ parser 2014-10-24 00:07:15 +04:00
Nikita Volkov
3c1657d921 Accomodate to updates in "hasql-backend" 2014-10-24 00:02:01 +04:00
Nikita Volkov
dab653047b Update errors 2014-10-23 22:50:53 +04:00
Nikita Volkov
ccf74316d0 Centralize exception handling 2014-10-23 22:28:56 +04:00
Nikita Volkov
ad3ed505d4 Get rid of the pool 2014-10-23 22:21:15 +04:00
Nikita Volkov
c98d630816 Cleanup 2014-10-23 22:19:40 +04:00
Nikita Volkov
6ab4148f35 Simplify function names 2014-10-23 21:19:39 +04:00
Nikita Volkov
d1f1a93aa1 Session settings 2014-10-23 21:19:39 +04:00
Nikita Volkov
9baf77d9c0 Unite the streaming executors and introduce a single 2014-10-23 21:15:34 +04:00
Nikita Volkov
d946f442d9 Move the streaming functions out of the base monad 2014-10-23 20:35:56 +04:00
Nikita Volkov
81c9d9996c Make the API Session-centric 2014-10-23 20:14:57 +04:00
Nikita Volkov
5379bf6fea Rename ResultsStream 2014-10-23 20:13:34 +04:00
Nikita Volkov
a47ac65a12 Correct the docs on "q" 2014-10-23 20:05:51 +04:00
Nikita Volkov
1a83e916fe Remove Statement from exports 2014-10-23 19:58:05 +04:00
Nikita Volkov
b1d2aa8d43 Docs on TxListT 2014-10-23 19:54:40 +04:00
Nikita Volkov
b07d0c588a Remove duality from execution model 2014-10-23 19:42:22 +04:00
Nikita Volkov
8f5a8e3e60 Export IsolationLevel 2014-10-23 18:43:43 +04:00
Nikita Volkov
eabf0be1d9 Docs 2014-10-23 17:59:01 +04:00
Nikita Volkov
98def4b8e4 Transaction -> Tx 2014-10-23 17:58:25 +04:00
Nikita Volkov
136237f725 Reimplement Pool 2014-10-23 17:56:16 +04:00
Nikita Volkov
589fa7a8b5 Cleanup 2014-10-23 16:34:59 +04:00
Nikita Volkov
f43aaffee9 Cleanup 2014-10-23 16:34:04 +04:00
Nikita Volkov
d47e98e9a3 parse -> parseRow 2014-10-23 16:33:33 +04:00
Nikita Volkov
e787181618 Unify the API in a single file 2014-10-23 16:32:31 +04:00
Nikita Volkov
25cea66d34 A dual execution model 2014-10-23 16:17:47 +04:00
Nikita Volkov
499b0bba60 Docs 2014-10-23 16:16:35 +04:00
Nikita Volkov
829caa6c50 Get rid of the Integer mapping dependency 2014-10-23 15:23:32 +04:00
Nikita Volkov
5969dc4376 Extract backend to external library 2014-10-23 00:07:40 +04:00
Nikita Volkov
3bc2383847 Simplify as hell 2014-10-22 23:58:54 +04:00
Nikita Volkov
2c6dfcbe5c Rename alias 2014-10-22 19:06:38 +04:00
Nikita Volkov
3a3faef1f9 Comments 2014-10-22 19:05:34 +04:00
Nikita Volkov
59c4ec134d Rename stuff a bit 2014-10-22 18:22:02 +04:00
Nikita Volkov
2668da3559 Clean up 2014-10-22 18:21:51 +04:00
Nikita Volkov
8722e0ea31 Function aliases 2014-10-21 15:15:35 +04:00
Nikita Volkov
ba9bbe3b89 Update API 2014-10-20 03:03:41 +04:00
Nikita Volkov
06e5973195 Update transaction conflicts handling 2014-10-19 23:35:26 +04:00
Nikita Volkov
d16efd9896 Rename to "hasql" 2014-10-18 00:03:02 +04:00
Nikita Volkov
6a47cacbdf Fix stream hoisting 2014-10-17 21:24:33 +04:00
Nikita Volkov
979e406f58 Identity and drop type rep 2014-10-17 16:34:35 +04:00
Nikita Volkov
034368cfc9 Update errors model 2014-10-17 03:11:47 +04:00
Nikita Volkov
c6261216f8 WIP 2014-10-17 00:49:59 +04:00
Nikita Volkov
7ef9f79a8b Extract Pool from API 2014-10-15 00:44:05 +04:00
Nikita Volkov
1e686028db Remove class 2014-10-15 00:28:49 +04:00
Nikita Volkov
2508b7294f New Transaction API 2014-10-15 00:21:18 +04:00
Nikita Volkov
fec1f2ba42 New API with example 2014-10-14 20:21:29 +04:00
Nikita Volkov
14981bf21e Partially reimplement API 2014-10-13 15:46:24 +04:00