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. -
In the list of services, select 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 Streams
orObject 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. The naming requirements are as follows:
- 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 the Required option if needed.
-
-
Click Create.
Getting information about a binding
-
In the management console
, select the folder where you created the binding. -
In the list of services, select Yandex Query.
-
In the left-hand panel, select Bindings.
-
In the line with the binding name, click
.
Under the list of bindings, you will see the following binding information:
General:- Data paths.
- Data format.
- Compression.
Columns: List of data binding columns and their types.
Connection parameters:
- Type.
- Information about the source.
- Authentication.
Meta:
- ID.
- Creation timestamp.
- Author.
Changing a binding
- In the management console
, select the folder where you want to change the binding. - In the list of services, select Yandex Query.
- In the left-hand panel, select Bindings.
- In the line with the binding name, 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 to delete the binding from. - In the list of services, select Yandex Query.
- In the left-hand panel, select Bindings.
- In the line with the binding name, click
and select Delete. - Confirm the deletion.