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
Valid values: A comma-separated list of catalog-to-role assignments, where each assignment maps a catalog to a role.
256
+
Type: string
257
+
Format: roles=catalog1:role1;catalog2=role2
258
+
Valid values: A semicolon-separated list of catalog-to-role assignments, where each assignment maps a catalog to a role.
259
259
Default: empty
260
260
```
261
261
The roles parameter defines authorization roles to assume for one or more catalogs during the Trino session.
262
262
263
-
You can assign roles either as a map of catalog-to-role pairs or a string. When a string is used, it applies the role to the `system` catalog by default.
263
+
You can assign roles either as a map of catalog-to-role pairs or a string direcly in the dns connection.
Copy file name to clipboardExpand all lines: trino/trino.go
+24-12Lines changed: 24 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -155,8 +155,6 @@ const (
155
155
mapKeySeparator=":"
156
156
mapEntrySeparator=";"
157
157
mapCommaSeparator=","
158
-
mapRolesSeparator="="
159
-
sistemRole="system"
160
158
)
161
159
162
160
var (
@@ -198,7 +196,7 @@ type Config struct {
198
196
AccessTokenstring// An access token (JWT) for authentication (optional)
199
197
ForwardAuthorizationHeaderbool// Allow forwarding the `accessToken` named query parameter in the authorization header, overwriting the `AccessToken` option, if set (optional)
200
198
QueryTimeout*time.Duration// Configurable timeout for query (optional)
201
-
Rolesinterface{} // Roles (optional)
199
+
Rolesmap[string]string// Roles (optional)
202
200
}
203
201
204
202
// FormatDSN returns a DSN string from the configuration.
0 commit comments