Git Product home page Git Product logo

sql_conn's Introduction

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. Easily read data from SQL Database. Perform CURD as well as many other operation on database using this plugin.

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 list in json format

To edit database (Queries such as Insert, Delete, Create and many more)

 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

The plugin is still in development and there might be some bugs.
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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.