You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-9
Original file line number
Diff line number
Diff line change
@@ -74,26 +74,27 @@ Advanced functionality - varies between databases:
74
74
75
75
More info can be found in [here](https://docs.sqlc.dev/en/stable/reference/query-annotations.html).
76
76
77
-
## Macros Annotations
77
+
## Macro Annotations
78
78
- `sqlc.arg`- Attach a name to a parameter in a SQL query
79
-
- `sqlc.embed`- Embedding allows you to reuse existing model structs in more queries
80
79
- `sqlc.narg`- The same as `sqlc.arg`, but always marks the parameter as nullable
81
80
- `sqlc.slice`- For databases that do not support passing arrays to the `IN` operator, generates a dynamic query at runtime with the correct number of parameters
81
+
- `sqlc.embed`- Embedding allows you to reuse existing model structs in more queries
82
82
83
83
<br/>
84
84
85
-
| Annotation | PostgresSQL | MySQL | SQLite |
86
-
|-------------|-------------|-------|--------|
87
-
| sqlc.arg | ✅ | ✅ | ✅ |
88
-
| sqlc.embed | ❌ | ❌ | ❌ |
89
-
| sqlc.narg | ❌ | ❌ | ❌ |
90
-
| sqlc.slice | 🚫 | ✅ | ❌ |
85
+
| Annotation | PostgresSQL | MySQL | SQLite |
86
+
|-------------|-------------|-------|---------|
87
+
| sqlc.arg | ✅ | ✅ | ✅ |
88
+
| sqlc.narg | ❌ | ❌ | ❌ |
89
+
| sqlc.slice | 🚫 | ✅ | ❌ |
90
+
| sqlc.embed | ❌ | ❌ | ❌ |
91
91
92
92
- ✅ means the feature is fully supported.
93
93
- 🚫 means the database does not support the feature.
94
94
- ❌ means the feature is not supported by the plugin (but could be supported by the database).
95
95
96
-
More info can be found in [here](https://docs.sqlc.dev/en/stable/reference/macros.html#macros).# Contributing
96
+
More info can be found in [here](https://docs.sqlc.dev/en/stable/reference/macros.html#macros).
97
+
# Contributing
97
98
## Local plugin development
98
99
### Prerequisites
99
100
Make sure that the following applications are installed and added to your path.
Copy file name to clipboardexpand all lines: docs/03_Usage.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -35,23 +35,23 @@ Advanced functionality - varies between databases:
35
35
36
36
More info can be found in [here](https://docs.sqlc.dev/en/stable/reference/query-annotations.html).
37
37
38
-
## Macros Annotations
38
+
## Macro Annotations
39
39
-`sqlc.arg` - Attach a name to a parameter in a SQL query
40
-
-`sqlc.embed` - Embedding allows you to reuse existing model structs in more queries
41
40
-`sqlc.narg` - The same as `sqlc.arg`, but always marks the parameter as nullable
42
41
-`sqlc.slice` - For databases that do not support passing arrays to the `IN` operator, generates a dynamic query at runtime with the correct number of parameters
42
+
-`sqlc.embed` - Embedding allows you to reuse existing model structs in more queries
43
43
44
44
<br/>
45
45
46
-
| Annotation | PostgresSQL | MySQL | SQLite |
47
-
|-------------|-------------|-------|--------|
48
-
| sqlc.arg | ✅ | ✅ | ✅ |
49
-
| sqlc.embed | ❌ | ❌ | ❌|
50
-
| sqlc.narg | ❌|❌| ❌|
51
-
| sqlc.slice|🚫|✅| ❌|
46
+
| Annotation | PostgresSQL | MySQL | SQLite |
47
+
|-------------|-------------|-------|---------|
48
+
| sqlc.arg | ✅ | ✅ | ✅ |
49
+
| sqlc.narg | ❌ | ❌ | ❌ |
50
+
| sqlc.slice | 🚫|✅| ❌ |
51
+
| sqlc.embed|❌|❌| ❌ |
52
52
53
53
- ✅ means the feature is fully supported.
54
54
- 🚫 means the database does not support the feature.
55
55
- ❌ means the feature is not supported by the plugin (but could be supported by the database).
56
56
57
-
More info can be found in [here](https://docs.sqlc.dev/en/stable/reference/macros.html#macros).
57
+
More info can be found in [here](https://docs.sqlc.dev/en/stable/reference/macros.html#macros).
0 commit comments