diff --git a/src/EdgeDB.Net.Driver/EdgeDBConnection.cs b/src/EdgeDB.Net.Driver/EdgeDBConnection.cs
index 2f8d2405..2f5e2754 100644
--- a/src/EdgeDB.Net.Driver/EdgeDBConnection.cs
+++ b/src/EdgeDB.Net.Driver/EdgeDBConnection.cs
@@ -66,7 +66,7 @@ internal bool ValidateServerCertificateCallback(object sender, X509Certificate?
///
public override string ToString()
{
- var str = "edgedb://";
+ var str = "gel://";
if (Username is not null)
str += Username;
@@ -269,8 +269,8 @@ public string CloudProfile
/// An environment variable couldn't be found.
public static EdgeDBConnection FromDSN(string dsn)
{
- if (!dsn.StartsWith("edgedb://"))
- throw new ConfigurationException("DSN schema 'edgedb' expected but got 'pq'");
+ if (!dsn.StartsWith("edgedb://") && !dsn.StartsWith("gel://"))
+ throw new ConfigurationException("DSN schema 'gel' expected but got 'pq'");
string? database = null, username = null, port = null, host = null, password = null;
@@ -644,7 +644,7 @@ public static EdgeDBConnection Parse(string? instance = null, string? dsn = null
// try to resolve the toml, don't do this for cloud-like conn params.
if (autoResolve && !((instance is not null && instance.Contains('/')) ||
- (dsn is not null && !dsn.StartsWith("edgedb://"))))
+ (dsn is not null && !dsn.StartsWith("edgedb://") && !dsn.StartsWith("gel://"))))
{
try
{
diff --git a/tests/EdgeDB.Tests.Unit/ConnectionTests.cs b/tests/EdgeDB.Tests.Unit/ConnectionTests.cs
index cebfd40a..20aaaa63 100644
--- a/tests/EdgeDB.Tests.Unit/ConnectionTests.cs
+++ b/tests/EdgeDB.Tests.Unit/ConnectionTests.cs
@@ -144,7 +144,7 @@ public void DSNWithUnixSocket() =>
[TestMethod]
public void DSNRequiresEdgeDBSchema() =>
ExpectError(ParseConnection("pq:///dbname?host=/unix_sock/test&user=spam"),
- "DSN schema 'edgedb' expected but got 'pq'");
+ "DSN schema 'gel' expected but got 'pq'");
[TestMethod]
public void DSNQueryParameterWithUnixSocket() =>