Managing bindings
Bindings contain information about a connection, data format, and data schema. You can use different bindings in the same query.
Creating a binding
To create a binding:
- In the management console
, select the folder where you want to create a binding. - Go to Yandex Query.
- In the left-hand panel, select Bindings.
- Click
Create. - Under Connection parameters:
- Select the type of connection to create a binding for:
Data StreamsorObject Storage. - Select a connection or create a new one.
- Select the type of connection to create a binding for:
- Under Binding parameters:
-
Enter a name and description for the binding. Follow these naming requirements:
- The name must be in lowercase Latin letters.
- Length: between 3 and 63 characters.
- It may contain digits and hyphens.
- The first character must be a letter, the last one cannot be a hyphen.
-
For the Data Streams connection type, select a data stream or create a new one.
For the Object Storage connection type, specify the bucket path. -
(Optional) Select the compression algorithm.
-
Select data binding format.
-
Add columns:
- Enter a name for the column.
- Select the column type.
- Enable Required, if required.
-
- Click Create.
Getting binding info
-
In the management console
, select the folder the binding was created in. -
Go to Yandex Query.
-
In the left-hand panel, select Bindings.
-
In the row with the binding, click
.
You will see the binding info under the list of bindings.
General:- Data paths
- Data format
- Compression
Columns: List of data binding columns and their types.
Connection parameters:
- Type
- Source info
- Authentication
Meta:
- ID
- Creation timestamp
- Author
Changing a binding
- In the management console
, select the folder want to change a binding in. - Go to Yandex Query.
- In the left-hand panel, select Bindings.
- In the row with the binding, click
and select Edit. - Specify new parameters for the data binding. You cannot edit information in the Connection parameters section.
- Click Modify.
Deleting a binding
- In the management console
, select the folder want to delete a binding in. - Go to Yandex Query.
- In the left-hand panel, select Bindings.
- In the row with the binding, click
and select Delete. - Confirm the deletion.