EctoTablestore.Repo.insert

You're seeing just the callback insert, go back to EctoTablestore.Repo module for more information.
Link to this callback

insert(schema_or_changeset, options)

View Source

Specs

insert(schema_or_changeset(), options()) :: {:ok, schema()} | {:error, term()}

Inserts a struct defined via EctoTablestore.Schema or a changeset.

Options

  • :condition, this option is required, whether to add conditional judgment before date insert.

    Two kinds of insert condition types as below: As condition(:ignore) means DO NOT do any condition validation before insert, if the schema non-partitioned primary key is auto increment, we can only use condition(:ignore) option. As condition(:expect_not_exist) means the primary key(s) are NOT existed before insert. * :transaction_id, insert under local transaction in a partition key.