Skip to content

Commit 42dee1a

Browse files
authored
prepare for rename to Gel (#238)
1 parent 3129f38 commit 42dee1a

29 files changed

+119
-33
lines changed

.credo.exs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@
3131
"apps/*/test/",
3232
"apps/*/web/"
3333
],
34-
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/"]
34+
excluded: [
35+
~r"/_build/",
36+
~r"/deps/",
37+
~r"/node_modules/",
38+
~r"test/support/scripts/"
39+
]
3540
},
3641
#
3742
# Load and configure plugins here:

.github/workflows/tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- "3.0"
3737
- "4.0"
3838
- "5.0"
39+
- "6.0"
3940

4041
exclude:
4142
- elixir-version: "1.12"
@@ -72,15 +73,15 @@ jobs:
7273
run: |
7374
EDGEDB_VERSION=${EDGEDB_VERSION%%.*}
7475
75-
rm -r "priv/edgedb/schema/migrations/"
76+
rm -r "test/support/schema/migrations/"
7677
77-
for module_file in `ls priv/edgedb/schema/`
78+
for module_file in `ls test/support/schema/`
7879
do
7980
module_version=${module_file%.esdl}
8081
module_version=${module_version#v}
8182
if test ${EDGEDB_VERSION} -lt ${module_version}
8283
then
83-
module_path="priv/edgedb/schema/${module_file}"
84+
module_path="test/support/schema/${module_file}"
8485
echo "removing ${module_path}"
8586
rm ${module_path}
8687
fi

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## Unreleased
8+
## [0.8.0] - 2025-02-26
99

10-
[Compare with 0.7.0](https://github.com/edgedb/edgedb-elixir/compare/v0.7.0...HEAD)
10+
[Compare with 0.7.0](https://github.com/edgedb/edgedb-elixir/compare/v0.7.0...v0.8.0)
11+
12+
> #### NOTE {: .warning}
13+
>
14+
> This is the last release of this client under the name `edgedb`
15+
> as the product name changes to `gel`.
16+
> The next release of this client (`0.9.0`) will not add any new functionality,
17+
> but will rename all modules and references from `EdgeDB` to `Gel`.
1118
1219
### Added
1320

edgedb.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[edgedb]
2-
server-version = "5.2"
2+
server-version = "6.0"
33

44
[project]
5-
schema-dir = "./priv/edgedb/schema"
5+
schema-dir = "./test/support/schema"

gel.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/edgedb/error.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule EdgeDB.Error do
44
55
Most of the functions in the `EdgeDB.Error` module are a shorthands for simplifying `EdgeDB.Error` exception
66
constructing. These functions are generated at compile time from a copy of the
7-
[errors.txt](https://github.com/edgedb/edgedb/blob/a529aae753319f26cce942ae4fc7512dd0c5a37b/edb/api/errors.txt) file.
7+
[errors.txt](https://github.com/edgedb/edgedb/blob/887c5f4e838c89eff0bbc7cf58c1b37e5334ba5f/edb/api/errors.txt) file.
88
99
The useful ones are:
1010

mix.exs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule EdgeDB.MixProject do
22
use Mix.Project
33

44
@app :edgedb
5-
@version "0.7.1"
5+
@version "0.8.0"
66
@source_url "https://github.com/edgedb/edgedb-elixir"
77
@description "EdgeDB client for Elixir"
88

@@ -163,14 +163,14 @@ defmodule EdgeDB.MixProject do
163163
defp aliases do
164164
[
165165
"edgedb.roles.setup": [
166-
"cmd priv/scripts/setup-roles.sh"
166+
"cmd test/support/scripts/setup-roles.sh"
167167
],
168168
"edgedb.roles.reset": [
169-
"cmd priv/scripts/drop-roles.sh",
170-
"cmd priv/scripts/setup-roles.sh"
169+
"cmd test/support/scripts/drop-roles.sh",
170+
"cmd test/support/scripts/setup-roles.sh"
171171
],
172172
"edgedb.docs": [
173-
"run priv/scripts/edgedb_docs.exs"
173+
"run test/support/scripts/edgedb_docs.exs"
174174
]
175175
]
176176
end

pages/rst/api/errors.rst

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,15 @@ Create a new ``EdgeDB.Error`` with ``EdgeDB.ConfigurationError`` type.
199199
200200
Create a new ``EdgeDB.Error`` with ``EdgeDB.ConstraintViolationError`` type.
201201

202+
*function* ``EdgeDB.Error.deprecated_scoping_error(msg, opts \\ [])``
203+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204+
205+
.. code:: elixir
206+
207+
@spec EdgeDB.Error.deprecated_scoping_error(String.t(), Keyword.t()) :: t()
208+
209+
Create a new ``EdgeDB.Error`` with ``EdgeDB.DeprecatedScopingError`` type.
210+
202211
*function* ``EdgeDB.Error.disabled_capability_error(msg, opts \\ [])``
203212
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204213

@@ -271,6 +280,15 @@ Create a new ``EdgeDB.Error`` with ``EdgeDB.DuplicateFunctionDefinitionError`` t
271280
272281
Create a new ``EdgeDB.Error`` with ``EdgeDB.DuplicateLinkDefinitionError`` type.
273282

283+
*function* ``EdgeDB.Error.duplicate_migration_error(msg, opts \\ [])``
284+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
285+
286+
.. code:: elixir
287+
288+
@spec EdgeDB.Error.duplicate_migration_error(String.t(), Keyword.t()) :: t()
289+
290+
Create a new ``EdgeDB.Error`` with ``EdgeDB.DuplicateMigrationError`` type.
291+
274292
*function* ``EdgeDB.Error.duplicate_module_definition_error(msg, opts \\ [])``
275293
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
276294

@@ -658,6 +676,15 @@ Create a new ``EdgeDB.Error`` with ``EdgeDB.ProtocolError`` type.
658676
659677
Create a new ``EdgeDB.Error`` with ``EdgeDB.QueryArgumentError`` type.
660678

679+
*function* ``EdgeDB.Error.query_assertion_error(msg, opts \\ [])``
680+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
681+
682+
.. code:: elixir
683+
684+
@spec EdgeDB.Error.query_assertion_error(String.t(), Keyword.t()) :: t()
685+
686+
Create a new ``EdgeDB.Error`` with ``EdgeDB.QueryAssertionError`` type.
687+
661688
*function* ``EdgeDB.Error.query_error(msg, opts \\ [])``
662689
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
663690

@@ -732,6 +759,24 @@ Create a new ``EdgeDB.Error`` with ``EdgeDB.SchemaError`` type.
732759
733760
Create a new ``EdgeDB.Error`` with ``EdgeDB.SchemaSyntaxError`` type.
734761

762+
*function* ``EdgeDB.Error.server_blocked_error(msg, opts \\ [])``
763+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
764+
765+
.. code:: elixir
766+
767+
@spec EdgeDB.Error.server_blocked_error(String.t(), Keyword.t()) :: t()
768+
769+
Create a new ``EdgeDB.Error`` with ``EdgeDB.ServerBlockedError`` type.
770+
771+
*function* ``EdgeDB.Error.server_offline_error(msg, opts \\ [])``
772+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
773+
774+
.. code:: elixir
775+
776+
@spec EdgeDB.Error.server_offline_error(String.t(), Keyword.t()) :: t()
777+
778+
Create a new ``EdgeDB.Error`` with ``EdgeDB.ServerOfflineError`` type.
779+
735780
*function* ``EdgeDB.Error.session_timeout_error(msg, opts \\ [])``
736781
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
737782

@@ -867,6 +912,15 @@ Create a new ``EdgeDB.Error`` with ``EdgeDB.UnknownParameterError`` type.
867912
868913
Create a new ``EdgeDB.Error`` with ``EdgeDB.UnknownPropertyError`` type.
869914

915+
*function* ``EdgeDB.Error.unknown_tenant_error(msg, opts \\ [])``
916+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
917+
918+
.. code:: elixir
919+
920+
@spec EdgeDB.Error.unknown_tenant_error(String.t(), Keyword.t()) :: t()
921+
922+
Create a new ``EdgeDB.Error`` with ``EdgeDB.UnknownTenantError`` type.
923+
870924
*function* ``EdgeDB.Error.unknown_user_error(msg, opts \\ [])``
871925
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
872926

@@ -921,4 +975,13 @@ Create a new ``EdgeDB.Error`` with ``EdgeDB.UnsupportedProtocolVersionError`` ty
921975
922976
Create a new ``EdgeDB.Error`` with ``EdgeDB.WarningMessage`` type.
923977

924-
.. _errors.txt: https://github.com/edgedb/edgedb/blob/a529aae753319f26cce942ae4fc7512dd0c5a37b/edb/api/errors.txt
978+
*function* ``EdgeDB.Error.watch_error(msg, opts \\ [])``
979+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
980+
981+
.. code:: elixir
982+
983+
@spec EdgeDB.Error.watch_error(String.t(), Keyword.t()) :: t()
984+
985+
Create a new ``EdgeDB.Error`` with ``EdgeDB.WatchError`` type.
986+
987+
.. _errors.txt: https://github.com/edgedb/edgedb/blob/887c5f4e838c89eff0bbc7cf58c1b37e5334ba5f/edb/api/errors.txt

priv/edgedb/api/errors.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
0x_04_03_00_04 UnknownUserError
6868
0x_04_03_00_05 UnknownDatabaseError
6969
0x_04_03_00_06 UnknownParameterError
70+
0x_04_03_00_07 DeprecatedScopingError
7071

7172
0x_04_04_00_00 SchemaError
7273

@@ -95,12 +96,13 @@
9596
0x_04_05_02_08 DuplicateFunctionDefinitionError
9697
0x_04_05_02_09 DuplicateConstraintDefinitionError
9798
0x_04_05_02_0A DuplicateCastDefinitionError
99+
0x_04_05_02_0B DuplicateMigrationError
98100

99101
####
100102

101103
0x_04_06_00_00 SessionTimeoutError
102104

103-
0x_04_06_01_00 IdleSessionTimeoutError
105+
0x_04_06_01_00 IdleSessionTimeoutError #SHOULD_RETRY
104106

105107
0x_04_06_02_00 QueryTimeoutError
106108

@@ -115,6 +117,7 @@
115117
0x_05_01_00_01 DivisionByZeroError
116118
0x_05_01_00_02 NumericOutOfRangeError
117119
0x_05_01_00_03 AccessPolicyError
120+
0x_05_01_00_04 QueryAssertionError
118121

119122
0x_05_02_00_00 IntegrityError
120123
0x_05_02_00_01 ConstraintViolationError
@@ -126,6 +129,8 @@
126129
0x_05_03_01_01 TransactionSerializationError
127130
0x_05_03_01_02 TransactionDeadlockError
128131

132+
0x_05_04_00_00 WatchError
133+
129134

130135
####
131136

@@ -144,7 +149,9 @@
144149
0x_08_00_00_00 AvailabilityError
145150

146151
0x_08_00_00_01 BackendUnavailableError #SHOULD_RETRY
147-
152+
0x_08_00_00_02 ServerOfflineError #SHOULD_RECONNECT #SHOULD_RETRY
153+
0x_08_00_00_03 UnknownTenantError #SHOULD_RECONNECT #SHOULD_RETRY
154+
0x_08_00_00_04 ServerBlockedError
148155

149156
####
150157

priv/scripts/drop-roles.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)