API Reference › DatabaseIDatabaseServiceInterfaceNamespace: SwiftlyS2.Shared.Database · Assembly: SwiftlyS2.CS2.dllpublic interface IDatabaseServiceView sourceMethodsGetConnection(string)Get a connection to the database.IDbConnection GetConnection(string connectionName)ParametersconnectionNamestringThe name of the connection to get the connection for.ReturnsIDbConnectionA 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)ParametersconnectionNamestringThe name of the connection to get the info for.ReturnsDatabaseConnectionInfoThe 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)ParametersconnectionNamestringThe name of the connection to get the string for.ReturnsstringThe connection string. Returns the default connection string if the connection name is not found.