mssql_native 0.2.0 copy "mssql_native: ^0.2.0" to clipboard
mssql_native: ^0.2.0 copied to clipboard

Native Microsoft SQL Server driver for Dart and Flutter, with connection pooling, streaming queries, cancellation, transactions, stored procedures and bulk copy.

example/README.md

Examples #

basic.dart is the compact package example. It shows runtime initialization, connection ownership, parameter binding, and cleanup. Replace its connection settings and select a trust source appropriate for the deployment before running it.

The rest of this directory is a larger Flutter development fixture. It demonstrates a connection lifecycle, a parameterized query, Unicode data, and visible error reporting.

Before running it, replace the placeholder connection settings in lib/main.dart with development credentials. The current UI contains a single action button; it does not collect credentials.

The driver initializes its runtime automatically when the first connection is opened. Encryption defaults to off, so the current fixture uses plaintext. A real application that selects require or strict must initialize MssqlRuntime with an appropriate process-wide MssqlTlsTrust first.

From this directory:

flutter pub get
flutter run

Supported Flutter targets are Windows x64, Linux x64, macOS arm64/x86_64, iOS arm64 device and arm64/x86_64 simulator, and Android arm64-v8a/x86_64. Web is not supported because the driver uses dart:ffi and packaged native libraries.

See TLS configuration and the package README before adapting the example for deployment.

0
likes
160
points
188
downloads

Documentation

API reference

Publisher

verified publisheraksoyhlc.net

Weekly Downloads

Native Microsoft SQL Server driver for Dart and Flutter, with connection pooling, streaming queries, cancellation, transactions, stored procedures and bulk copy.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

code_assets, ffi, hooks, meta, native_toolchain_c

More

Packages that depend on mssql_native