Skip to main content

insert

Function insert 

Source
pub fn insert<E: Entity>(
    dialect: Dialect,
    entity: &E,
    assigned_id: Option<u64>,
) -> Prepared
Expand description

INSERT INTO table (…) VALUES (…).

assigned_id is a shard-encoded primary key minted by the connector, for the sharded data tier where the key cannot be auto-increment.