georgysavva
608451a215
Store original config in Conn before updating it.
2020-06-01 19:38:12 +03:00
georgysavva
8d541d0004
Add Config.Copy() method that return a smart copy of the config.
2020-06-01 19:20:17 +03:00
Jack Christensen
0e04d8187e
Add raw benchmark
2020-06-01 08:53:45 -05:00
Jack Christensen
4b95a747d7
Use pgtype.NewValue instead of reflect for Values()
...
This is both cleaner and necessary for pgtype.TypeValue types.
2020-05-30 13:32:15 -05:00
Jack Christensen
8dee3382f7
Improve unknown type support for database/sql
...
- Return unknown type OID instead of empty string for type name.
- ScanType is string instead of empty interface for unknown types.
fixes #759
2020-05-30 13:27:25 -05:00
Jack Christensen
837704dc7d
Update stdlib docs to point to Conn.Raw instead of AcquireConn
2020-05-30 13:27:25 -05:00
Jack Christensen
2bd26ec7fa
Expose stdlib.Conn.Conn() to enable database/sql.Conn.Raw()
2020-05-30 13:27:25 -05:00
Jack Christensen
e6c101413b
Merge pull request #761 from ikozinov/rows-close-logger
...
Added err field because log output is a bit confusing since it is not clear what error occurred
2020-05-27 08:48:22 -05:00
Igor V. Kozinov
4043edafe7
Add error field to logger on rows close
2020-05-27 14:44:53 +06:00
Jack Christensen
9e1a67c1bc
Wait longer in timing sensitive test
...
Less likely to fail on CI.
2020-05-25 12:04:01 -05:00
Jack Christensen
2647eff567
Fix ValidateConnect with cancelable context
...
fixes #40
2020-05-25 11:49:37 -05:00
Jack Christensen
e318c27e26
Merge branch 'jordanlewis-send-batch-simple'
2020-05-25 11:37:52 -05:00
Jack Christensen
72bba7fb42
Move batch simple protocol test to batch_test.go
2020-05-25 11:36:18 -05:00
Jack Christensen
8bad186207
Avoid race between close conn and cancel ctx
2020-05-25 11:35:20 -05:00
Jack Christensen
3ec395d4ef
Merge branch 'send-batch-simple' of git://github.com/jordanlewis/pgx into jordanlewis-send-batch-simple
2020-05-25 11:26:16 -05:00
Jack Christensen
bcdbb9f657
Tweak benchmarks to account for slow binary formats
...
See https://www.postgresql.org/message-id/CAMovtNoHFod2jMAKQjjxv209PCTJx5Kc66anwWvX0mEiaXwgmA%40mail.gmail.com
2020-05-25 11:18:11 -05:00
Jordan Lewis
25099e6f89
Permit SendBatch with Simple Protocol
...
This commit adds support for sending batches of queries via the Simple
protocol with SendBatch. The result appears identically to how it would
if it were created with the extended protocol.
2020-05-25 01:37:48 -04:00
Jack Christensen
8c33aa2443
Remove CPU wasting empty default statement
...
fixes #39
2020-05-23 11:47:42 -05:00
Jack Christensen
9d847241cb
Merge pull request #29 from pmorelli92/master
...
Add the possibility of assigning a TID to a string
2020-05-21 09:46:10 -05:00
Pablo Morelli
afff6abc6c
TID AssignTo string
2020-05-20 15:01:21 +02:00
Jack Christensen
2ccb66fe21
Doc fix
2020-05-16 18:48:05 -05:00
Jack Christensen
8faa1f5096
Fix off by one error with number of rows benchmark
2020-05-16 18:43:22 -05:00
Jack Christensen
b19811bbeb
Merge branch 'georgysavva-store-connection-string'
2020-05-16 18:14:24 -05:00
Jack Christensen
ac6c49c39d
Require access to ConnString via Config
...
A Config object may be created via ParseConfig and then further
modified. Requiring access to the original ConnString via the Config
helps indicate that the Config is the source of truth as to how the
connection was actually established.
2020-05-16 18:12:04 -05:00
Jack Christensen
59a2185dfb
Merge branch 'store-connection-string' of git://github.com/georgysavva/pgx into georgysavva-store-connection-string
2020-05-16 18:07:27 -05:00
georgysavva
20c6c44f9f
Expose Conn.Config() and Pool.Config().
2020-05-16 19:53:08 +03:00
georgysavva
33cbec368f
rename ConnStr -> ConnString
2020-05-16 19:24:57 +03:00
Jack Christensen
0d82849554
Link directly to geeting started guide
2020-05-16 10:50:30 -05:00
georgysavva
7c73e608ff
go mod tidy.
2020-05-16 18:12:22 +03:00
georgysavva
a62de87342
Add ConnStr getter to Pool and Conn structs.
2020-05-16 18:10:29 +03:00
Jack Christensen
173227a6e3
Link to wiki from README.
2020-05-16 10:10:07 -05:00
Jack Christensen
b1fc2870e5
go mod tidy
2020-05-16 08:21:04 -05:00
Jack Christensen
f19b08628e
Tweak docs to make conn / conn pool distinction clearer
2020-05-16 08:20:40 -05:00
Jack Christensen
1b54d15e93
Fix documentation error
...
fixes #749
2020-05-16 07:48:11 -05:00
Jack Christensen
c65fd8e2df
Merge pull request #745 from un000/master
...
Properly close a pool on "not lazy" connect
2020-05-13 12:01:59 -05:00
Yegor Myskin
8dd3679f5a
Properly close a pool on "not lazy" connect
2020-05-13 17:48:28 +03:00
Jack Christensen
18d2604119
Merge pull request #38 from lukedirtwalker/fixIPv6
...
Handle IPv6 in connection URLs
2020-05-13 08:50:38 -05:00
Jack Christensen
238967ec4e
Improve accuracy of numeric to float
...
fixes #27
2020-05-13 08:05:19 -05:00
Jack Christensen
64789acf46
Merge pull request #734 from georgysavva/stdlib-timeouts
...
Improve Stdlib context timeouts
2020-05-13 07:45:18 -05:00
Jack Christensen
39f9d6079c
Merge branch 'georgysavva-improve-connect-timeout'
2020-05-13 07:43:45 -05:00
Jack Christensen
fafefa6063
Merge branch 'improve-connect-timeout' of git://github.com/georgysavva/pgconn into georgysavva-improve-connect-timeout
2020-05-13 07:43:15 -05:00
Jack Christensen
fb54a80edf
Merge pull request #36 from Eun/patch-1
...
concludeCommand should not throw away fieldDescriptions
2020-05-13 07:38:08 -05:00
Jack Christensen
6a1a9d05bc
Add pgxtype package for simpler type registration
2020-05-13 07:34:10 -05:00
Jack Christensen
f8471ebfa8
ArrayType requires element OID
2020-05-13 07:11:10 -05:00
Jack Christensen
ee0e207ee4
CompositeType fields contain name and oid
2020-05-13 07:09:52 -05:00
Jack Christensen
0e2bc3467a
Fix ext/gofrs-uuid AssignTo *uuid.UUID
2020-05-12 21:01:06 -05:00
Jack Christensen
b3e1355a46
CompositeType can assign to struct via reflection
2020-05-12 16:58:16 -05:00
Jack Christensen
9a3923b6e0
EncodeRow is superceded by CompositeFields
2020-05-12 15:51:27 -05:00
Jack Christensen
506ea36835
Do not export quoteCompositeFieldIfNeeded
2020-05-12 15:47:44 -05:00
Jack Christensen
eebc6975de
Add EncodeText support for CompositeType
2020-05-12 15:45:16 -05:00