MsSQLConnectionPlatform class abstract
A platform interface for interacting with MS SQL Server databases.
This class declares methods for performing common database operations, and platform-specific implementations should extend this class.
The platform-specific class should be set using the instance property.
- Inheritance
-
- Object
- PlatformInterface
- MsSQLConnectionPlatform
- Implementers
Constructors
- MsSQLConnectionPlatform()
- Constructs a MsSQLConnectionPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
{required String ip, required String port, required String databaseName, required String username, required String password, int timeoutInSeconds = 15}) → Future< bool> - Connects to the MS SQL Server database.
-
disconnect(
) → Future< bool> - Disconnects from the MS SQL Server database.
-
getData(
String query) → Future< String> - Retrieves data from the database using the specified SQL query.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeData(
String query) → Future< String> - Writes data to the database using the specified SQL query.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ MsSQLConnectionPlatform
-
The default instance of MsSQLConnectionPlatform to use.
getter/setter pair