{"id":15873760,"url":"https://github.com/bijithpn/sql_connection_package","last_synced_at":"2025-04-01T22:43:26.100Z","repository":{"id":257809613,"uuid":"867716389","full_name":"bijithpn/sql_connection_package","owner":"bijithpn","description":"A package that connects to JDBC SQL Server databases.","archived":false,"fork":false,"pushed_at":"2024-10-04T16:29:33.000Z","size":276,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T14:46:39.834Z","etag":null,"topics":["flutter","flutterpackage","jdbc","sql","sql-server"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/sql_connection","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bijithpn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-04T15:24:49.000Z","updated_at":"2024-10-04T16:29:38.000Z","dependencies_parsed_at":"2024-10-04T16:42:24.566Z","dependency_job_id":null,"html_url":"https://github.com/bijithpn/sql_connection_package","commit_stats":null,"previous_names":["bijithpn/sql_connection_package"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bijithpn%2Fsql_connection_package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bijithpn%2Fsql_connection_package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bijithpn%2Fsql_connection_package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bijithpn%2Fsql_connection_package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bijithpn","download_url":"https://codeload.github.com/bijithpn/sql_connection_package/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246724798,"owners_count":20823543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flutter","flutterpackage","jdbc","sql","sql-server"],"created_at":"2024-10-06T01:06:12.901Z","updated_at":"2025-04-01T22:43:26.069Z","avatar_url":"https://github.com/bijithpn.png","language":"Kotlin","readme":"## **SQL Connection Plugin** 🔌\n\n**Connect to and interact with SQL Server databases from your Flutter apps.** 📱\n\nThe `sql_connection` plugin provides a simple and efficient way to connect to SQL Server databases on Android. You can easily execute queries, fetch data, and perform other database operations directly from your Flutter code.\n\n**Key Features:**\n\n- **Seamless SQL Server integration:** 🔄 Connect to your SQL Server database with minimal setup.\n- **Powerful query execution:** 🔍 Execute SQL queries and retrieve results directly from your Flutter app.\n- **Flexible data manipulation:** 🔄 Insert, update, and delete data in your SQL Server database.\n- **Customizable connection options:** ⚙️ Set connection timeouts and other parameters to suit your needs.\n- **Android platform support:** 🤖 Works seamlessly on Android devices.\n\n## Get started:\n\n**1. Add the package to your `pubspec.yaml` file:**\n\n```yaml\ndependencies:\n  sql_connection: ^1.0.0\n```\n\n**1.1. Type this command on your `terminal` :**\n\n```bash\n flutter pub add sql_connection\n```\n\n**2. Import the package:**\n\n```dart\nimport 'package:sql_connection/sql_connection.dart';\n```\n\n**3. Establish a connection:**\n\n```dart\nvar connectionStatus = await sqlConnection.connect(\n        ip: ip,\n        port: port,\n        databaseName: databaseName,\n        username: username,\n        password: password,\n        );\n```\n\n**4. Execute queries:**\n\nThe `sql_connection` plugin empowers you to seamlessly execute SQL queries and perform a wide range of database operations, including:\n\n**4.1 Read Data:**\n\n📖 Retrieve information from your SQL Server database using `SELECT` statements.\n\n```dart\n   var result = await sqlConnection.queryDatabase('SELECT * FROM your_table');\n```\n\n**4.2 Write Data:**\n\n📝 Insert, update, and delete data in your database using `INSERT`, `UPDATE`, and `DELETE` statements.\n\n```dart\n  var result = await sqlConnection.updateData('UPDATE your_table_name SET column_name = new_value');\n```\n\n**5. Close the connection:**\n\n❌ After you're done with your database operations, it's important to close the connection to release resources and prevent memory leaks. You can use the `disconnect()` method on the `sqlConnection` object to terminate the connection.\n\n```dart\nawait sqlConnection.disconnect();\n```\n\n## Examples\n\n\u003cimg src=\"https://github.com/bijithpn/sql_connection_package/blob/6bf70a84ff8fc3c27019639dbe2eac599ed0e921/screenshots/1.png?raw=true\" alt=\"Connection Establishing screen\" width=\"300\"/\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003cimg src=\"https://github.com/bijithpn/sql_connection_package/blob/6bf70a84ff8fc3c27019639dbe2eac599ed0e921/screenshots/2.png?raw=true\" alt=\"Read \u0026 write Operations\" width=\"300\"/\u003e\n\n## Caution: Security Considerations\n\n**Direct database connections can pose security risks. It's strongly recommended to use an API or middleware layer to handle database interactions and protect sensitive information.**\n\nDirect connections expose your database credentials and can make your application vulnerable to attacks. Consider using a REST API or GraphQL server to provide a secure interface between your Flutter app and the database.\n\n## Contributing\n\nContributions are welcome! Please feel free to open issues or submit pull requests.\n\n## License\n\nThis package is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbijithpn%2Fsql_connection_package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbijithpn%2Fsql_connection_package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbijithpn%2Fsql_connection_package/lists"}