Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
nim-version:
- '2.2.0'
- '2.2.4'
- 'stable'
- 'devel'

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Async PostgreSQL client in Nim.

## Requirements

- Nim >= 2.2.0
- Nim >= 2.2.4

## Installation

Expand Down
2 changes: 1 addition & 1 deletion async_postgres.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"

# Dependencies

requires "nim >= 2.2.0"
requires "nim >= 2.2.4"
requires "nimcrypto >= 0.6.0"
requires "checksums >= 0.2.0"

Expand Down
52 changes: 51 additions & 1 deletion async_postgres/pg_protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -174,25 +174,69 @@ const
21, # int2 / smallint
23, # int4 / integer
25, # text
114, # json
142, # xml
143, # xml[]
600, # point
601, # lseg
602, # path
603, # box
604, # polygon
628, # line
629, # line[]
650, # cidr
651, # cidr[]
700, # float4
701, # float8
718, # circle
719, # circle[]
774, # macaddr8
775, # macaddr8[]
829, # macaddr
869, # inet
1000, # bool[]
1001, # bytea[]
1005, # int2[]
1007, # int4[]
1009, # text[]
1015, # varchar[]
1016, # int8[]
1017, # point[]
1018, # lseg[]
1019, # path[]
1020, # box[]
1021, # float4[]
1022, # float8[]
1027, # polygon[]
1040, # macaddr[]
1041, # inet[]
1043, # varchar
1082, # date
1083, # time
1114, # timestamp
1115, # timestamp[]
1182, # date[]
1183, # time[]
1184, # timestamptz
1185, # timestamptz[]
1186, # interval
1187, # interval[]
1231, # numeric[]
1266, # timetz
1270, # timetz[]
1560, # bit
1561, # bit[]
1562, # varbit
1563, # varbit[]
1700, # numeric
2950, # uuid
2951, # uuid[]
3614, # tsvector
3615, # tsquery
3643, # tsvector[]
3645, # tsquery[]
3802, # jsonb
3807, # jsonb[]
3904, # int4range
3905, # int4range[]
3906, # numrange
Expand All @@ -211,9 +255,15 @@ const
4534, # tstzmultirange
4535, # datemultirange
4536, # int8multirange
6150, # int4multirange[]
6151, # nummultirange[]
6152, # tsmultirange[]
6153, # tstzmultirange[]
6155, # datemultirange[]
6157, # int8multirange[]
]

BinarySafeMaxOid = 4536
BinarySafeMaxOid = 6157

pgCopyBinaryHeader*: array[19, byte] = [
## PGCOPY binary format header (signature + flags + extension length).
Expand Down
Loading
Loading