swiftlys2/docs/api/ai/
API Reference Database

IDatabaseService

Interface
Namespace: SwiftlyS2.Shared.Database · Assembly: SwiftlyS2.CS2.dll
public interface IDatabaseService
View source

Methods

GetConnection(string)

Get a connection to the database.

IDbConnection GetConnection(string connectionName)
Parameters
  • connectionNamestringThe name of the connection to get the connection for.
Returns
A connection to the database. Return the default connection if the connection name is not found.

GetConnectionInfo(string)

Get the connection info for a given connection name.

DatabaseConnectionInfo GetConnectionInfo(string connectionName)
Parameters
  • connectionNamestringThe name of the connection to get the info for.
Returns
The connection info. Returns the default connection info if the connection name is not found.

GetConnectionString(string)

Get the connection string for a given connection name.

string GetConnectionString(string connectionName)
Parameters
  • connectionNamestringThe name of the connection to get the string for.
Returns
The connection string. Returns the default connection string if the connection name is not found.