Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old connection construction functions. #93

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading