fix(connectors): read a connector's capabilities before it has ever loaded (#2087)
This commit is contained in:
1 file changed
+4
-2
@@ -37,8 +37,10 @@ type Accepted struct {
|
||||
// as a JSON array.
|
||||
Tools jsontext.Value `db:"tools"`
|
||||
// Capabilities is what a connector declared when it last loaded, as a JSON
|
||||
// object. It is nil until then, and acceptance never changes it.
|
||||
Capabilities jsontext.Value `db:"capabilities"`
|
||||
// object. It is nil until then, and acceptance never changes it. It is a
|
||||
// []byte because database/sql scans NULL into []byte but not into a named
|
||||
// byte slice such as jsontext.Value.
|
||||
Capabilities []byte `db:"capabilities"`
|
||||
}
|
||||
|
||||
// Contracts an accepted package can serve.
|
||||
|
||||
Reference in new issue
Block a user