(cloudConfig config.Cloud)
| 15 | const defaultHostname = "grpc.sqlc.dev" |
| 16 | |
| 17 | func NewClientFromConfig(cloudConfig config.Cloud) (pb.QuickClient, error) { |
| 18 | projectID := cloudConfig.Project |
| 19 | return NewClient(projectID, cloudConfig.AuthToken, WithHost(cloudConfig.Hostname)) |
| 20 | } |
| 21 | |
| 22 | type options struct { |
| 23 | hostname string |