Jack Christensen
c19454582b
Add AssignTo to pgtype.Timestamptz
...
Also handle infinity for pgtype.Date
2017-03-03 15:24:47 -06:00
Jack Christensen
7329933610
Implement AssignTo for most pgtypes
2017-03-03 15:12:18 -06:00
Jack Christensen
cc3d1e4af8
Use pgtype.Int2Array in pgx
2017-03-02 21:19:07 -06:00
Jack Christensen
36da5cc217
Add text array transcoding
2017-02-28 21:45:33 -06:00
Jack Christensen
1b0f18d99f
Add ParseUntypedTextArray
2017-02-27 19:28:55 -06:00
Jack Christensen
0f50ce3e83
wip
2017-02-27 18:54:20 -06:00
Jack Christensen
d934f27362
WIP - beginning text format array parsing
2017-02-26 17:14:32 -06:00
Jack Christensen
7276ad33ce
Beginning binary arrays
2017-02-25 22:50:11 -06:00
Jack Christensen
917faa5a31
Fix incomplete tests
2017-02-25 19:36:35 -06:00
Jack Christensen
de8c140cfb
Add timestamptz null and infinity
2017-02-25 19:32:22 -06:00
Jack Christensen
7d9f954de4
Add infinity to pgtype.Date
2017-02-25 18:19:38 -06:00
Jack Christensen
7bf783ae20
Add Status to pgtype.Date
2017-02-25 17:19:55 -06:00
Jack Christensen
984500455c
Add status to Int4 and Int8
2017-02-25 16:54:01 -06:00
Jack Christensen
6fe76fcfc2
Extract testSuccessfulTranscode
2017-02-25 16:40:27 -06:00
Jack Christensen
001647c1da
Add Status to pgtype.Int2
2017-02-25 16:15:51 -06:00
Jack Christensen
720451f06d
Add status to pgtype.Bool
2017-02-25 15:56:44 -06:00
Jack Christensen
325f700b6e
Add date to conversion system
2017-02-24 17:28:15 -06:00
Jack Christensen
4a9343e45d
Add bool to oid based encoding
2017-02-24 16:28:35 -06:00
Jack Christensen
d984fcafab
Add pgtype interfaces
2017-02-24 16:15:38 -06:00
Jack Christensen
0f93bfc2de
Begin introduction of Convert
2017-02-24 14:48:34 -06:00
Jack Christensen
e5707023ca
Move bool to pgtype
2017-02-24 14:10:56 -06:00
Jack Christensen
bb764d2129
Add Int2 test
2017-02-24 13:45:05 -06:00
Jack Christensen
08c49437f4
Add Int4 test
2017-02-24 13:44:09 -06:00
Jack Christensen
1672295222
Add int8 tests
2017-02-24 08:56:59 -06:00
Jack Christensen
83a5447cd2
wip
2017-02-22 18:08:05 -06:00
Jack Christensen
0ca0ee7206
wip
2017-02-20 18:56:52 -06:00
Jack Christensen
d2c2baf4ea
wip
2017-02-20 18:46:10 -06:00
Jack Christensen
f78371da00
wip
2017-02-20 17:43:39 -06:00
Jack Christensen
3366699bea
wip
2017-02-20 14:07:47 -06:00
Jack Christensen
66b79e9408
Extract pgio
2017-02-20 13:35:37 -06:00
Jack Christensen
8b07d97d13
wip
2017-02-20 13:20:00 -06:00
Jack Christensen
62f1adb342
wip
2017-02-20 12:08:46 -06:00
Jack Christensen
a712d25469
wip
2017-02-20 09:30:52 -06:00
Jack Christensen
4faf97cc58
wip
2017-02-17 22:20:18 -06:00
Jack Christensen
366440d40d
Remove *msgReader.readOID
2017-02-17 07:40:06 -06:00
Jack Christensen
47eda78ea1
Refactor huge switch statement
2017-02-16 19:44:50 -06:00
Jack Christensen
4d56221868
Do not scan binary values into strings
...
refs #219 and #228
2017-02-16 19:19:45 -06:00
Jack Christensen
ccc65c361a
Privatize Conn.SecretKey
2017-02-16 18:31:34 -06:00
Jack Christensen
e390ac33f5
Fix Fatal -> Fatalf
2017-02-16 18:12:42 -06:00
Jack Christensen
c540b65edf
Fix leaked contexts
2017-02-16 18:11:30 -06:00
Jack Christensen
efcc172c8b
Remove unreachable code
2017-02-16 18:08:43 -06:00
Jack Christensen
f947f0971f
more v3 notes
2017-02-14 21:57:48 -06:00
Jack Christensen
c8be89a16b
v3 notes updated
2017-02-13 20:48:55 -06:00
Jack Christensen
11b82b3ca4
msgReader implemented in terms of ChunkReader
...
This should substantially reduce memory allocations and memory copies.
It also means that PostgreSQL messages are always entirely buffered in memory
before processing begins. This simplifies the message processing code.
In particular, Conn.WaitForNotification is dramatically simplified by this
change.
2017-02-13 20:45:42 -06:00
Jack Christensen
84802ece05
conn.Close closes underlying conn
...
Previously, it merely sent the termination message.
2017-02-13 20:40:04 -06:00
Jack Christensen
f597c16a7b
Add ChunkReader
2017-02-12 21:46:15 -06:00
Jack Christensen
7fbff4a495
Merge branch 'context' into v3-experimental
2017-02-12 15:13:47 -06:00
Jack Christensen
cc414269c1
Remove debugging Println
2017-02-12 08:12:36 -06:00
Jack Christensen
d0a6921d12
Add dependency to travis.yml
2017-02-11 20:40:28 -06:00
Jack Christensen
048a75406f
Fix context query cancellation
...
Previous commits had a race condition due to not waiting for the PostgreSQL
server to close the cancel query connection. This made it possible for the
cancel request to impact a subsequent query on the same connection. This
commit sets a flag that a cancel request was made and blocks until the
PostgreSQL server closes the cancel connection.
2017-02-11 19:53:18 -06:00