0.18.0 (latest) 0.17.1 0.16.0 0.15.3 0.12.0 0.11.0 0.10.1 0.9.2 0.8.1 0.7.0 0.6.0 0.5.1 0.4.7 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataform V1 Client class SqlDefinition.

Definition of a SQL Data Preparation

Generated from protobuf message `google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinition`

## Namespace

Google \\ Cloud \\ Dataform \\ V1 \\ CompilationResultAction \\ DataPreparation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ query` | `string` The SQL query representing the data preparation steps. Formatted as a Pipe SQL query statement. |
| `↳ error_table` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.CompilationResultAction.DataPreparation.ErrorTable` Error table configuration, |
| `↳ load` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.CompilationResultAction.LoadConfig` Load configuration. |

### getQuery

The SQL query representing the data preparation steps. Formatted as a
Pipe SQL query statement.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setQuery

The SQL query representing the data preparation steps. Formatted as a
Pipe SQL query statement.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getErrorTable

Error table configuration,

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.CompilationResultAction.DataPreparation.ErrorTable|null` |   |

### hasErrorTable

### clearErrorTable

### setErrorTable

Error table configuration,

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.CompilationResultAction.DataPreparation.ErrorTable` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLoad

Load configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.CompilationResultAction.LoadConfig|null` |   |

### hasLoad

### clearLoad

### setLoad

Load configuration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.CompilationResultAction.LoadConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |