configure method
Configure the API endpoint for SQL Server proxy
Web applications MUST use a backend API server to connect to SQL Server for security reasons. Never expose database credentials in web code!
Example:
MssqlIoWeb.getInstance().configure(
apiBaseUrl: 'https://your-api.com/sql',
authToken: 'your-auth-token',
);
Implementation
void configure({
required String apiBaseUrl,
String? authToken,
}) {
_apiBaseUrl = apiBaseUrl.endsWith('/') ? apiBaseUrl : '$apiBaseUrl/';
_authToken = authToken;
_isConfigured = true;
}