Module ir

Source
Expand description

The intermediate representation

Modulesยง

alter_expr ๐Ÿ”’
create_expr ๐Ÿ”’
insert_expr ๐Ÿ”’
select_expr ๐Ÿ”’

Macrosยง

generate_values ๐Ÿ”’
FIXME(weny): Waits for https://github.com/GreptimeTeam/greptimedb/issues/4247

Structsยง

AlterTableExpr
Column
The IR column.
ColumnBuilder
Builder for Column.
ColumnTypeGenerator
CreateDatabaseExpr
CreateTableExpr
A naive create table expr builder.
DATA_TYPES
Ident
An identifier.
InsertIntoExpr
MYSQL_TS_DATA_TYPES
MySQLTsColumnTypeGenerator
PARTIBLE_DATA_TYPES
PartibleColumnTypeGenerator
STRING_DATA_TYPES
StringColumnTypeGenerator
TS_DATA_TYPES
TsColumnTypeGenerator

Enumsยง

AlterTableOption
ColumnBuilderError
Error type for ColumnBuilder

Functionsยง

column_options_generator
Generates ColumnOption for Column.
droppable_columns
Returns droppable columns. i.e., non-primary key columns, non-ts columns.
format_columns
Formats a slice of columns into a comma-separated string of column names.
generate_columns
Generates columns with given names.
generate_partition_bounds
Generates partition bounds.
generate_random_date ๐Ÿ”’
generate_random_timestamp
Generate random timestamps.
generate_random_timestamp_for_mysql
generate_random_value
Generates a random Value.
generate_unique_timestamp_for_mysql
Generate monotonically increasing timestamps for MySQL.
modifiable_columns
Returns columns that can use the alter table modify command
partible_column_options_generator
Generates ColumnOption for Partible Column.
primary_key_and_not_null_column_options_generator
primary_key_options_generator
replace_default
Replace Value::Default with the corresponding default value in the rows for comparison.
sort_by_primary_keys
Sorts a vector of rows based on the values in the specified primary key columns.
ts_column_options_generator
Generates ColumnOption for ts Column.