Function barrel::types::primary[][src]

pub fn primary() -> Type
Expand description

A standard primary numeric key type

It’s 64-bit wide, can’t be null or non-unique and auto-increments on inserts. Maps to primary on Pg and manually enforces this behaviour for other Sql variants.