MssqlEcto v1.2.0 MssqlEcto.Query View Source

Link to this section Summary

Functions

Receives a query and must return a SELECT query

Returns a DELETE for the filters returning the given returning

Receives a query and must return a DELETE query

Returns an INSERT for the given rows in table returning the given returning

Returns an UPDATE for the given fields in table filtered by filters returning the given returning

Receives a query and values to update and must return an UPDATE query

Link to this section Functions

Receives a query and must return a SELECT query.

Link to this function delete(prefix, table, filters, returning) View Source
delete(prefix :: String.t, table :: String.t, filters :: [atom], returning :: [atom]) :: String.t

Returns a DELETE for the filters returning the given returning.

Link to this function delete_all(query) View Source
delete_all(query :: Ecto.Query.t) :: String.t

Receives a query and must return a DELETE query.

Link to this function insert(prefix, table, header, rows, on_conflict, returning) View Source
insert(prefix :: String.t, table :: String.t, header :: [atom], rows :: [[atom | nil]], on_conflict :: Ecto.Adapter.on_conflict, returning :: [atom]) :: String.t

Returns an INSERT for the given rows in table returning the given returning.

Link to this function update(prefix, table, fields, filters, returning) View Source
update(prefix :: String.t, table :: String.t, fields :: [atom], filters :: [atom], returning :: [atom]) :: String.t

Returns an UPDATE for the given fields in table filtered by filters returning the given returning.

Link to this function update_all(query, prefix \\ nil) View Source

Receives a query and values to update and must return an UPDATE query.