-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from planetscale/change-spec-format
Change spec format
- Loading branch information
Showing
1 changed file
with
1 addition
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1 @@ | ||
{ | ||
"type": "SPEC", | ||
"spec": { | ||
"documentationUrl": "https://planetscale.com/docs/integrations/airbyte", | ||
"connectionSpecification": { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "PlanetScale Source Spec", | ||
"type": "object", | ||
"required": [ | ||
"host", | ||
"database", | ||
"username", | ||
"password" | ||
], | ||
"additionalProperties": false, | ||
"properties": { | ||
"host": { | ||
"description": "The host name of the database.", | ||
"title": "Host", | ||
"type": "string", | ||
"order": 0 | ||
}, | ||
"shards": { | ||
"description": "Comma separated list of shards you'd like to sync, by default all shards are synced.", | ||
"title": "Shards", | ||
"type": "string", | ||
"order": 5 | ||
}, | ||
"database": { | ||
"description": "The PlanetScale database name.", | ||
"title": "Database", | ||
"type": "string", | ||
"order": 1 | ||
}, | ||
"username": { | ||
"description": "The username which is used to access the database.", | ||
"title": "Username", | ||
"type": "string", | ||
"order": 2 | ||
}, | ||
"password": { | ||
"description": "The password associated with the username.", | ||
"title": "Password", | ||
"type": "string", | ||
"order": 3, | ||
"airbyte_secret": true | ||
}, | ||
"use_replica": { | ||
"description": "Use a replica to pull data from", | ||
"title": "Use replica?", | ||
"type": "boolean", | ||
"default": false, | ||
"order": 4 | ||
}, | ||
"starting_gtids": { | ||
"type": "string", | ||
"title": "Starting GTIDs", | ||
"default": "", | ||
"description": "A JSON string containing start GTIDs for every { keyspace: { shard: starting_gtid } }", | ||
"order": 6 | ||
}, | ||
"options": { | ||
"type": "object", | ||
"title": "Customize serialization", | ||
"description": "The storage Provider or Location of the file(s) which should be replicated.", | ||
"default": "Public Web", | ||
"oneOf": [ | ||
{ | ||
"title": "tinyint(1) serialization", | ||
"required": [ | ||
"do_not_treat_tiny_int_as_boolean" | ||
], | ||
"properties": { | ||
"storage": { | ||
"type": "string", | ||
"const": "HTTPS" | ||
}, | ||
"do_not_treat_tiny_int_as_boolean": { | ||
"type": "boolean", | ||
"title": "Do not treat tinyint(1) as boolean", | ||
"default": false, | ||
"description": "If enabled, properties of type TinyInt(1) are output as TinyInt, and not boolean." | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
{"type":"SPEC","spec":{"documentationUrl":"https://planetscale.com/docs/integrations/airbyte","connectionSpecification":{"$schema":"http://json-schema.org/draft-07/schema#","title":"PlanetScale Source Spec","type":"object","required":["host","database","username","password"],"additionalProperties":false,"properties":{"host":{"description":"The host name of the database.","title":"Host","type":"string","order":0},"shards":{"description":"Comma separated list of shards you'd like to sync, by default all shards are synced.","title":"Shards","type":"string","order":5},"database":{"description":"The PlanetScale database name.","title":"Database","type":"string","order":1},"username":{"description":"The username which is used to access the database.","title":"Username","type":"string","order":2},"password":{"description":"The password associated with the username.","title":"Password","type":"string","order":3,"airbyte_secret":true},"use_replica":{"description":"Use a replica to pull data from","title":"Use replica?","type":"boolean","default":false,"order":4},"starting_gtids":{"type":"string","title":"Starting GTIDs","default":"","description":"A JSON string containing start GTIDs for every { keyspace: { shard: starting_gtid } }","order":6},"options":{"type":"object","title":"Customize serialization","description":"The storage Provider or Location of the file(s) which should be replicated.","default":"Public Web","oneOf":[{"title":"tinyint(1) serialization","required":["do_not_treat_tiny_int_as_boolean"],"properties":{"storage":{"type":"string","const":"HTTPS"},"do_not_treat_tiny_int_as_boolean":{"type":"boolean","title":"Do not treat tinyint(1) as boolean","default":false,"description":"If enabled, properties of type TinyInt(1) are output as TinyInt, and not boolean."}}}]}}}}} |