Ecto.Adapter.Schema.insert
You're seeing just the callback
insert
, go back to Ecto.Adapter.Schema module for more information.
Link to this callback
insert(adapter_meta, schema_meta, fields, on_conflict, returning, options)
View SourceSpecs
insert( adapter_meta(), schema_meta(), fields(), on_conflict(), returning(), options() ) :: {:ok, fields()} | {:invalid, constraints()}
Inserts a single new struct in the data store.
Autogenerate
The primary key will be automatically included in returning
if the
field has type :id
or :binary_id
and no value was set by the
developer or none was autogenerated by the adapter.