MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / default

Method default

src/entity/column.rs:400–406  ·  view source on GitHub ↗

Set the default value or expression of a column

(mut self, default: T)

Source from the content-addressed store, hash-verified

398
399 /// Set the default value or expression of a column
400 pub fn default<T>(mut self, default: T) -> Self
401 where
402 T: Into<SimpleExpr>,
403 {
404 self.default = Some(default.into());
405 self
406 }
407
408 /// Get [ColumnType] as reference
409 pub fn get_column_type(&self) -> &ColumnType {

Callers 3

create_satellites_tableFunction · 0.45
timestampsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected