File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -595,7 +595,7 @@ defmodule Ecto.Query do
595
595
conditions = dynamic([q], q.some_condition and ^conditions)
596
596
from query, where: ^conditions
597
597
598
- > ### Dynamic boundaries {: .warning}
598
+ > #### Dynamic boundaries {: .warning}
599
599
>
600
600
> Type casting does not cross dynamic boundaries. When you write
601
601
> a dynamic expression, such as `dynamic([p], p.visits > ^param)`,
@@ -1031,7 +1031,7 @@ defmodule Ecto.Query do
1031
1031
from p in Post,
1032
1032
hints: ["TABLESAMPLE", unsafe_fragment(^sample)]
1033
1033
1034
- > ### Unsafe Fragments {: .warning}
1034
+ > #### Unsafe Fragments {: .warning}
1035
1035
>
1036
1036
> The output of `unsafe_fragment/1` will be injected directly into the
1037
1037
> resulting SQL statement without being escaped. For this reason, input
@@ -1283,7 +1283,7 @@ defmodule Ecto.Query do
1283
1283
after the join. In the expression syntax, the options are given as
1284
1284
the fifth argument.
1285
1285
1286
- > ### Unspecified join condition {: .warning}
1286
+ > #### Unspecified join condition {: .warning}
1287
1287
>
1288
1288
> Leaving the `:on` option unspecified while performing a join
1289
1289
> that is not a cross join will trigger a warning. This is to
Original file line number Diff line number Diff line change @@ -1044,7 +1044,7 @@ defmodule Ecto.Repo do
1044
1044
) :: term | nil
1045
1045
1046
1046
@ doc """
1047
- Checks if there exists an entry that matches the given query .
1047
+ Checks if there exists an entry that matches the given queryable .
1048
1048
1049
1049
Returns a boolean.
1050
1050
@@ -1060,6 +1060,13 @@ defmodule Ecto.Repo do
1060
1060
See the ["Shared options"](#module-shared-options) section at the module
1061
1061
documentation for more options.
1062
1062
1063
+ > #### Generated Query {: .info}
1064
+ >
1065
+ > Ecto will take the provided queryable and modify it to reduce its footprint
1066
+ > as much as possible. For example, by forcing `SELECT 1` and `LIMIT 1`. Any
1067
+ > additional filtering must be provided directly on the queryable using expressions
1068
+ > such as `where` and `having`.
1069
+
1063
1070
## Examples
1064
1071
1065
1072
# checks if any posts exist
You can’t perform that action at this time.
0 commit comments