Skip to content

Commit

Permalink
Remove old connection construction functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwpark committed Jan 29, 2025
1 parent 4e501cb commit b1e3a97
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 649 deletions.
8 changes: 4 additions & 4 deletions src/EdgeDB.Net.Driver/EdgeDBClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,19 @@ private void RemoveClient(ulong id)
/// <remarks>
/// This constructor uses the default config and will attempt to find your EdgeDB project toml file in the current
/// working directory. If
/// no file is found this method will throw a <see cref="FileNotFoundException" />.
/// no file is found this method will throw a <see cref="ConfigurationException" />.
/// </remarks>
public EdgeDBClient() : this(EdgeDBConnection.ResolveEdgeDBTOML(), new EdgeDBClientPoolConfig()) { }
public EdgeDBClient() : this(EdgeDBConnection.Create(), new EdgeDBClientPoolConfig()) { }

/// <summary>
/// Creates a new instance of a EdgeDB client pool allowing you to execute commands.
/// </summary>
/// <remarks>
/// This constructor will attempt to find your EdgeDB project toml file in the current working directory. If
/// no file is found this method will throw a <see cref="FileNotFoundException" />.
/// no file is found this method will throw a <see cref="ConfigurationException" />.
/// </remarks>
/// <param name="clientPoolConfig">The config for this client pool.</param>
public EdgeDBClient(EdgeDBClientPoolConfig clientPoolConfig) : this(EdgeDBConnection.ResolveEdgeDBTOML(),
public EdgeDBClient(EdgeDBClientPoolConfig clientPoolConfig) : this(EdgeDBConnection.Create(),
clientPoolConfig)
{
}
Expand Down
Loading

0 comments on commit b1e3a97

Please sign in to comment.