Struct msi::ColumnBuilder [] [src]

pub struct ColumnBuilder { /* fields omitted */ }

A factory for configuring a new database column.

Methods

impl ColumnBuilder
[src]

Makes the column be localizable.

Makes the column allow null values.

Makes the column be a primary key column.

Makes the column only permit values in the given range.

Makes the column refer to a key column in another table.

For string columns, makes the column use the specified data format.

Makes the column only permit the given values.

Builds a column that stores a 16-bit integer.

Builds a column that stores a 32-bit integer.

Builds a column that stores a string.

Builds a column that stores an identifier string. This is equivalent to self.category(ColumnCategory::Identifier).string(max_len).

Builds a column that stores a text string. This is equivalent to self.category(ColumnCategory::Text).string(max_len).

Builds a column that refers to a binary data stream. This sets the category to ColumnCategory::Binary in addition to setting the column type.