File tree Expand file tree Collapse file tree 5 files changed +28
-8
lines changed Expand file tree Collapse file tree 5 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## Unreleased
9
9
10
- [ Compare with 0.3.0] ( https://github.com/nsidnev/edgedb-elixir/compare/v0.3.0...HEAD )
10
+ [ Compare with 0.4.0] ( https://github.com/nsidnev/edgedb-elixir/compare/v0.4.0...HEAD )
11
+
12
+ ## [ 0.4.0] - 2022-08-04
13
+
14
+ [ Compare with 0.3.0] ( https://github.com/nsidnev/edgedb-elixir/compare/v0.3.0...v0.4.0 )
11
15
12
16
### Added
13
17
Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ defmodule EdgeDB do
108
108
| { :retry , list ( retry_option ( ) ) }
109
109
| { :codecs , list ( module ( ) ) }
110
110
| { :connection , module ( ) }
111
+ | { :pool , module ( ) }
112
+ | { :state , EdgeDB.State . t ( ) }
111
113
112
114
@ typedoc """
113
115
Options for `EdgeDB.start_link/1`.
@@ -684,6 +686,13 @@ defmodule EdgeDB do
684
686
)
685
687
end
686
688
689
+ @ doc """
690
+ Open a subtransaction inside an already open transaction.
691
+
692
+ If an error in subtransaction occurs then subtransaction will automatically rollback.
693
+
694
+ See `EdgeDB.subtransaction/2` for more information.
695
+ """
687
696
@ spec subtransaction! ( DBConnection . conn ( ) , ( DBConnection . conn ( ) -> result ( ) ) ) :: result ( )
688
697
def subtransaction! ( conn , callback ) do
689
698
case subtransaction ( conn , callback ) do
Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ defmodule EdgeDB.State do
7
7
3. session config.
8
8
4. global values.
9
9
10
- The most convenient way to use the `EdgeDB` API to change a part of state.
11
- See `EdgeDB.with_default_module/2`, `EdgeDB.with_module_aliases/2`/`EdgeDB.without_module_aliases/2`,
12
- `EdgeDB.with_config/2`/`EdgeDB.without_config/2`, `EdgeDB.with_globals/2`/`EdgeDB.without_globals/2`
13
- and `EdgeDB.with_state/2` for more information.
10
+ The most convenient way to work with the state is to use the `EdgeDB` API to change a required part of
11
+ the state.
12
+
13
+ See `EdgeDB.with_state/2`, `EdgeDB.with_default_module/2`,
14
+ `EdgeDB.with_module_aliases/2`/`EdgeDB.without_module_aliases/2`,
15
+ `EdgeDB.with_config/2`/`EdgeDB.without_config/2` and
16
+ `EdgeDB.with_globals/2`/`EdgeDB.without_globals/2` for more information.
14
17
"""
15
18
16
19
@ default_module "default"
Original file line number Diff line number Diff line change 1
1
defmodule EdgeDB.Range do
2
2
@ moduledoc """
3
- An immutable value representing some interval of values.
3
+ A value representing some interval of values.
4
4
5
5
```elixir
6
6
iex(1)> {:ok, pid} = EdgeDB.start_link()
@@ -18,7 +18,7 @@ defmodule EdgeDB.Range do
18
18
]
19
19
20
20
@ typedoc """
21
- An immutable value representing some interval of values.
21
+ A value representing some interval of values.
22
22
23
23
Fields:
24
24
@@ -35,6 +35,10 @@ defmodule EdgeDB.Range do
35
35
inc_upper: boolean ( ) ,
36
36
is_empty: boolean ( )
37
37
}
38
+
39
+ @ typedoc """
40
+ A value representing some interval of values.
41
+ """
38
42
@ type t ( ) :: t ( term ( ) )
39
43
40
44
@ typedoc """
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ defmodule EdgeDB.MixProject do
2
2
use Mix.Project
3
3
4
4
@ app :edgedb
5
- @ version "0.3 .0"
5
+ @ version "0.4 .0"
6
6
@ source_url "https://github.com/nsidnev/edgedb-elixir"
7
7
@ description "EdgeDB driver for Elixir"
8
8
You can’t perform that action at this time.
0 commit comments