Commit Graph

340 Commits

Author SHA1 Message Date
Nikita Volkov
3438be4777 Unit Default Params 2015-11-15 14:45:56 +03:00
Nikita Volkov
d4534fe9ba Drop the NonparametricQuery, since its backing "libpq" API does not support the binary protocol 2015-11-15 14:42:32 +03:00
Nikita Volkov
676f52c6bb Update errors 2015-11-15 12:12:15 +03:00
Nikita Volkov
1f34c3f4f3 Non-parametric query execution and refactorings 2015-11-15 10:29:53 +03:00
Nikita Volkov
663cc1a12e Unite Query and Connection into Hasql 2015-11-14 13:58:30 +03:00
Nikita Volkov
9e684170a1 Enum 2015-11-10 17:53:14 +03:00
Nikita Volkov
535b910fea Docs 2015-11-09 07:48:58 +03:00
Nikita Volkov
5c9cc57ab2 Consistent styling 2015-11-08 21:20:07 +03:00
Nikita Volkov
c9ef7eda7d Complete reimplementation 2015-11-08 21:09:42 +03:00
Nikita Volkov
7482cf2c55 GHC 7.10 support 2015-03-30 10:24:27 +03:00
Nikita Volkov
52cd7db40d Support for free variables by the quasi-quoter 2015-01-12 04:52:30 +03:00
Nikita Volkov
3f996b8b0a Relax the dependency on "monad-control" 2014-12-29 15:56:33 +03:00
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
Nikita Volkov
a5d4418824 Cleanup deps 2014-10-12 23:28:17 +04:00
Nikita Volkov
928f89c065 Row 2014-10-12 22:32:56 +04:00
Nikita Volkov
e940079a4c Reimplement Backend 2014-10-12 22:32:51 +04:00
Nikita Volkov
d7fb2ce0b9 Clean up 2014-08-11 19:10:55 +04:00
Nikita Volkov
d5e432769f Add Decimal 2014-08-11 18:13:37 +04:00
Nikita Volkov
e4fee82adf Lose the "Value_" prefix 2014-08-06 04:03:29 +04:00
Nikita Volkov
30b3593b40 Drop redundant dependency 2014-08-06 03:59:47 +04:00
Nikita Volkov
8e245cd6e8 Docs, exports and API finishing 2014-08-05 22:53:45 +04:00
Nikita Volkov
873ccbf633 Implement API 2014-08-05 20:24:58 +04:00
Nikita Volkov
129731fe7c Update Value instances generation 2014-08-05 18:47:20 +04:00
Nikita Volkov
7262c148f8 Rearrange Row and ValueConversion into Conversion 2014-08-05 18:43:57 +04:00
Nikita Volkov
4d0f57a1e8 Maybe Value 2014-08-05 18:27:15 +04:00
Nikita Volkov
cca38b5255 Row instances 2014-08-05 18:11:37 +04:00
Nikita Volkov
50c7b53dc7 Select with parsing 2014-08-05 17:02:08 +04:00
Nikita Volkov
2479055641 Implement transaction and update errors 2014-08-05 15:25:53 +04:00
Nikita Volkov
4988ae501b Prelude correction 2014-08-05 15:01:16 +04:00
Nikita Volkov
399d5172ae Switch from transformer-based resource management to IO due to potential concurrency issues 2014-08-05 14:18:57 +04:00
Nikita Volkov
268acdafdc Get rid of HDBC 2014-08-05 14:18:22 +04:00
Nikita Volkov
28b30c3bc8 Updates and more rearrangement 2014-08-05 00:50:59 +04:00
Nikita Volkov
6f3ad25703 Major rearrangement 2014-08-04 16:54:10 +04:00
Nikita Volkov
56b59bbcbe Merge branch 'qq'
* qq:
  QQ
  Parser
  Data deps

Conflicts:
	high-sql.cabal
2014-08-04 16:05:44 +04:00
Nikita Volkov
c8fddfff66 QQ 2014-08-04 15:58:39 +04:00
Nikita Volkov
1e39675dbe Parser 2014-08-04 02:37:01 +04:00
Nikita Volkov
3e0490e59f Data deps 2014-08-04 02:36:41 +04:00
Nikita Volkov
dad0f81e2d Results Stream sketch 2014-08-03 20:57:45 +04:00
Nikita Volkov
0c28e6ccae Levels and Privileges sketch 2014-08-03 20:16:17 +04:00
Nikita Volkov
dfd65582e0 CompositionT 2014-08-03 20:16:02 +04:00
Nikita Volkov
02015ca5e3 Init 2014-08-03 17:48:18 +04:00