mssql_io 0.0.1 copy "mssql_io: ^0.0.1" to clipboard
mssql_io: ^0.0.1 copied to clipboard

A Flutter plugin that exposes Microsoft SQL Server access using Dart FFI and FreeTDS. Supports Windows, Android, iOS, macOS, and Linux with queries, transactions, bulk insert, and more.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.0.1 - 2025-11-18 #

Added #

  • Initial release of MSSQL IO plugin
  • Direct FFI access to SQL Server via FreeTDS
  • Cross-platform support (Windows, Android, iOS, macOS, Linux)
  • Secure parameterized queries using sp_executesql
  • Transaction support (BEGIN, COMMIT, ROLLBACK)
  • Bulk insert capabilities (BCP)
  • Configurable connection timeouts
  • Auto-reconnect functionality
  • Base64 encoding for binary columns
  • Comprehensive error handling with custom exceptions
  • Singleton connection management
  • JSON result format with deterministic schema
  • Extensive unit tests with mocked FFI
  • Integration tests with SQL Server
  • CI/CD pipeline with GitHub Actions
  • Complete API documentation
  • Example Flutter app demonstrating all features

Features #

  • MssqlConnection.getInstance() - Singleton access
  • connect() - Establish connection with configuration
  • disconnect() - Close connection and free resources
  • getData() - Execute SELECT queries
  • getDataWithParams() - Execute parameterized SELECT queries
  • writeData() - Execute INSERT/UPDATE/DELETE operations
  • writeDataWithParams() - Execute parameterized write operations
  • beginTransaction() - Start transaction
  • commit() - Commit transaction
  • rollback() - Rollback transaction
  • bulkInsert() - High-performance batch inserts
  • Connection status tracking
  • Transaction state tracking
  • Automatic error recovery with retry logic

Security #

  • SQL injection protection via parameterized queries
  • No credential logging in error messages
  • Secure connection configuration
  • TLS/SSL support (via FreeTDS configuration)

Performance #

  • Zero-copy FFI implementation
  • Efficient native memory management
  • Batch processing for bulk operations
  • Connection pooling ready

Documentation #

  • Comprehensive README with examples
  • API reference documentation
  • Platform-specific setup guides
  • Troubleshooting guide
  • Security best practices
  • Performance optimization tips

Testing #

  • 95%+ code coverage
  • Unit tests for all components
  • Integration tests with real SQL Server
  • CI tests on Linux, macOS, and Windows
  • Android and iOS build verification

[Unreleased] #

Planned for Future Releases #

  • Connection pooling
  • Stored procedure support with output parameters
  • Streaming large result sets
  • Enhanced Windows Authentication
  • Built-in retry policies
  • Query builder API
  • Performance profiling tools
  • Connection health monitoring
  • Async batch operations
  • Column-level encryption support

Version History #

  • 0.0.1 (2025-11-18): Initial release with full feature set for all platforms
4
likes
0
points
27
downloads

Publisher

verified publisherfarhansadikgalib.com

Weekly Downloads

A Flutter plugin that exposes Microsoft SQL Server access using Dart FFI and FreeTDS. Supports Windows, Android, iOS, macOS, and Linux with queries, transactions, bulk insert, and more.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, flutter

More

Packages that depend on mssql_io

Packages that implement mssql_io