gravitino.api.rel.table_change.UpdateColumnAutoIncrement

final class gravitino.api.rel.table_change.UpdateColumnAutoIncrement(_field_name: list[str], _auto_increment: bool)

Bases: ColumnChange

A TableChange to update the autoIncrement of a field.

True is to add autoIncrement, false is to delete autoIncrement.

__init__(_field_name: list[str], _auto_increment: bool) None

Methods

__init__(_field_name, _auto_increment)

field_name()

Retrieves the field name of the column to be modified.

is_auto_increment()

Checks if the column is autoIncrement.

field_name() list[str]

Retrieves the field name of the column to be modified.

Returns:
list[str]:

A list of strings representing the field name.

is_auto_increment() bool

Checks if the column is autoIncrement.

Returns:

bool: True if the column is autoIncrement; False otherwise.