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

outdated

A new Flutter project.

sql_conn #

A sql_conn is a plugin for connecting Flutter Android application to SQL Server.

This library aims to provide an easy to use interface to SQL Server.

The plugin is still in development and there might be some bugs

Platform Support #

Android iOS
✔️ ❌️

Usage #

Connect to the database

await SqlConn.connect(
        ip: "192.168.167.176",
        port: "1433",
        databaseName: "MyDatabase",
        username: "admin123",
        password: "Pass@123");

Execute a query with parameters:

To read data from database

var res = await SqlConn.readData("SELECT * FROM tableName");
    print(res.toString());
    // results are in json format

To edit database (Queries such as Insert, Delete)

 var res = await SqlConn.writeData(query);
    print(res.toString());
    // returns true is executed successfully

Disconnect from database

 SqlConn.disconnect();

To check if application is connected to database

 print(SqlConn.isConnected);

Bugs/Requests #

If you encounter any problems feel free to open an issue.
If you feel the library is missing a feature, please raise a ticket on Github.
Pull request are also welcome.
50
likes
0
pub points
81%
popularity

Publisher

unverified uploader

A new Flutter project.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on sql_conn