Skip to content

Commit d84638c

Browse files
update docs (#273)
Co-authored-by: SockworkOrange <26390445+SockworkOrange@users.noreply.github.com>
1 parent 7501e7f commit d84638c

3 files changed

Lines changed: 70 additions & 6 deletions

File tree

README.md

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ version: "2"
1212
plugins:
1313
- name: csharp
1414
wasm:
15-
url: https://github.com/DaredevilOSS/sqlc-gen-csharp/releases/download/v0.21.0/sqlc-gen-csharp.wasm
16-
sha256: 6a01b8c24418abff5d3c272dd1b4ad69f2b43939bb8866243947db3d167a079c
15+
url: https://github.com/DaredevilOSS/sqlc-gen-csharp/releases/download/v0.21.1/sqlc-gen-csharp.wasm
16+
sha256: f687963c30bbe2a3d4a2abe8343538f3daa1271f683580e779065285304787b9
1717
sql:
1818
# For PostgresSQL
1919
- schema: schema.sql
@@ -219,8 +219,8 @@ we consider support for the different data types separately for batch inserts an
219219
| tsvector | ✅ | ❌ |
220220
| tsquery | ✅ | ❌ |
221221
| uuid | ✅ | ✅ |
222-
| json | ✅ | ⚠️ |
223-
| jsonb | ✅ | ⚠️ |
222+
| json | ✅ | |
223+
| jsonb | ✅ | |
224224
| jsonpath | ✅ | ⚠️ |
225225
| xml | ✅ | ⚠️ |
226226
| enum | ✅ | ⚠️ |
@@ -443,6 +443,14 @@ overrides:
443443
csharp_type:
444444
type: "DateTime"
445445
notNull: true
446+
- column: "GetPostgresSpecialTypesCnt:c_json"
447+
csharp_type:
448+
type: "JsonElement"
449+
notNull: false
450+
- column: "GetPostgresSpecialTypesCnt:c_jsonb"
451+
csharp_type:
452+
type: "JsonElement"
453+
notNull: false
446454
- column: "*:c_json_string_override"
447455
csharp_type:
448456
type: "string"
@@ -482,6 +490,14 @@ overrides:
482490
csharp_type:
483491
type: "DateTime"
484492
notNull: true
493+
- column: "GetPostgresSpecialTypesCnt:c_json"
494+
csharp_type:
495+
type: "JsonElement"
496+
notNull: false
497+
- column: "GetPostgresSpecialTypesCnt:c_jsonb"
498+
csharp_type:
499+
type: "JsonElement"
500+
notNull: false
485501
- column: "*:c_json_string_override"
486502
csharp_type:
487503
type: "string"
@@ -521,6 +537,14 @@ overrides:
521537
csharp_type:
522538
type: "DateTime"
523539
notNull: true
540+
- column: "GetPostgresSpecialTypesCnt:c_json"
541+
csharp_type:
542+
type: "JsonElement"
543+
notNull: false
544+
- column: "GetPostgresSpecialTypesCnt:c_jsonb"
545+
csharp_type:
546+
type: "JsonElement"
547+
notNull: false
524548
- column: "*:c_json_string_override"
525549
csharp_type:
526550
type: "string"
@@ -560,6 +584,14 @@ overrides:
560584
csharp_type:
561585
type: "DateTime"
562586
notNull: true
587+
- column: "GetPostgresSpecialTypesCnt:c_json"
588+
csharp_type:
589+
type: "JsonElement"
590+
notNull: false
591+
- column: "GetPostgresSpecialTypesCnt:c_jsonb"
592+
csharp_type:
593+
type: "JsonElement"
594+
notNull: false
563595
- column: "*:c_json_string_override"
564596
csharp_type:
565597
type: "string"

docs/02_Quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ version: "2"
44
plugins:
55
- name: csharp
66
wasm:
7-
url: https://github.com/DaredevilOSS/sqlc-gen-csharp/releases/download/v0.21.0/sqlc-gen-csharp.wasm
8-
sha256: 6a01b8c24418abff5d3c272dd1b4ad69f2b43939bb8866243947db3d167a079c
7+
url: https://github.com/DaredevilOSS/sqlc-gen-csharp/releases/download/v0.21.1/sqlc-gen-csharp.wasm
8+
sha256: f687963c30bbe2a3d4a2abe8343538f3daa1271f683580e779065285304787b9
99
sql:
1010
# For PostgresSQL
1111
- schema: schema.sql

docs/08_Examples.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ overrides:
2323
csharp_type:
2424
type: "DateTime"
2525
notNull: true
26+
- column: "GetPostgresSpecialTypesCnt:c_json"
27+
csharp_type:
28+
type: "JsonElement"
29+
notNull: false
30+
- column: "GetPostgresSpecialTypesCnt:c_jsonb"
31+
csharp_type:
32+
type: "JsonElement"
33+
notNull: false
2634
- column: "*:c_json_string_override"
2735
csharp_type:
2836
type: "string"
@@ -62,6 +70,14 @@ overrides:
6270
csharp_type:
6371
type: "DateTime"
6472
notNull: true
73+
- column: "GetPostgresSpecialTypesCnt:c_json"
74+
csharp_type:
75+
type: "JsonElement"
76+
notNull: false
77+
- column: "GetPostgresSpecialTypesCnt:c_jsonb"
78+
csharp_type:
79+
type: "JsonElement"
80+
notNull: false
6581
- column: "*:c_json_string_override"
6682
csharp_type:
6783
type: "string"
@@ -101,6 +117,14 @@ overrides:
101117
csharp_type:
102118
type: "DateTime"
103119
notNull: true
120+
- column: "GetPostgresSpecialTypesCnt:c_json"
121+
csharp_type:
122+
type: "JsonElement"
123+
notNull: false
124+
- column: "GetPostgresSpecialTypesCnt:c_jsonb"
125+
csharp_type:
126+
type: "JsonElement"
127+
notNull: false
104128
- column: "*:c_json_string_override"
105129
csharp_type:
106130
type: "string"
@@ -140,6 +164,14 @@ overrides:
140164
csharp_type:
141165
type: "DateTime"
142166
notNull: true
167+
- column: "GetPostgresSpecialTypesCnt:c_json"
168+
csharp_type:
169+
type: "JsonElement"
170+
notNull: false
171+
- column: "GetPostgresSpecialTypesCnt:c_jsonb"
172+
csharp_type:
173+
type: "JsonElement"
174+
notNull: false
143175
- column: "*:c_json_string_override"
144176
csharp_type:
145177
type: "string"

0 commit comments

Comments
 (0)