Reference documentation and code samples for the Google Cloud Datastream V1 Client class SqlServerColumn.
SQLServer Column.
Generated from protobuf message google.cloud.datastream.v1.SqlServerColumn
Namespace
Google \ Cloud \ Datastream \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ column |
string
Column name. |
↳ data_type |
string
The SQLServer data type. |
↳ length |
int
Column length. |
↳ precision |
int
Column precision. |
↳ scale |
int
Column scale. |
↳ primary_key |
bool
Whether or not the column represents a primary key. |
↳ nullable |
bool
Whether or not the column can accept a null value. |
↳ ordinal_position |
int
The ordinal position of the column in the table. |
getColumn
Column name.
Returns | |
---|---|
Type | Description |
string |
setColumn
Column name.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDataType
The SQLServer data type.
Returns | |
---|---|
Type | Description |
string |
setDataType
The SQLServer data type.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLength
Column length.
Returns | |
---|---|
Type | Description |
int |
setLength
Column length.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getPrecision
Column precision.
Returns | |
---|---|
Type | Description |
int |
setPrecision
Column precision.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getScale
Column scale.
Returns | |
---|---|
Type | Description |
int |
setScale
Column scale.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getPrimaryKey
Whether or not the column represents a primary key.
Returns | |
---|---|
Type | Description |
bool |
setPrimaryKey
Whether or not the column represents a primary key.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getNullable
Whether or not the column can accept a null value.
Returns | |
---|---|
Type | Description |
bool |
setNullable
Whether or not the column can accept a null value.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getOrdinalPosition
The ordinal position of the column in the table.
Returns | |
---|---|
Type | Description |
int |
setOrdinalPosition
The ordinal position of the column in the table.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |