{"id":20109029,"url":"https://github.com/aliesmaeil/queries-in-file","last_synced_at":"2026-01-04T15:52:02.910Z","repository":{"id":249898643,"uuid":"832891749","full_name":"AliEsmaeil/queries-in-file","owner":"AliEsmaeil","description":"converting multiple SQL queries located in a file into only one composite insert query","archived":false,"fork":false,"pushed_at":"2024-07-24T01:14:09.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T22:28:29.309Z","etag":null,"topics":["dart","query","query-builder","sql"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AliEsmaeil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-07-24T00:07:17.000Z","updated_at":"2024-09-02T20:02:01.000Z","dependencies_parsed_at":"2024-07-24T03:09:06.812Z","dependency_job_id":null,"html_url":"https://github.com/AliEsmaeil/queries-in-file","commit_stats":null,"previous_names":["aliesmaeil/queries-in-file"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliEsmaeil%2Fqueries-in-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliEsmaeil%2Fqueries-in-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliEsmaeil%2Fqueries-in-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliEsmaeil%2Fqueries-in-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliEsmaeil","download_url":"https://codeload.github.com/AliEsmaeil/queries-in-file/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244999230,"owners_count":20544866,"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":["dart","query","query-builder","sql"],"created_at":"2024-11-13T18:06:54.788Z","updated_at":"2026-01-04T15:52:02.855Z","avatar_url":"https://github.com/AliEsmaeil.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Converting Multiple Queries in File to Single Query\n\nAn example demonstrating a file containing many insert queries and converting them to single insert query:\n\nHere's what i have put in the file(inserts.txt), exactly in a single line:\n\n\u003ctable\u003e\n  \u003ctr\u003e\u003ctd\u003e\u003ch4 align=center\u003einserts.txt file\u003ch4\u003e\u003c/td\u003e\u003c/tr\u003e\n  \u003ctr\u003e\u003ctd\u003e\n  \nINSERT INTO article (id, name) VALUES (1, 'Banana') ;\n\nINSERT INTO article (id, name) VALUES (2, 'Orange') ;\n\nINSERT INTO article (id, name) VALUES (3, 'Apple') ;\n\n\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\nThis demonstration is done using procedural programming (functional programming)\n\nThe result of that function is just a single `String` representing the content of the file or `null` if the file is not exist.\n\nafter all you need to get the accumulative query and pass it to your database Manager to insert them:\n\n  `INSERT INTO article (id, name) VALUES (1, 'Banana') ,(2, 'Orange') ,(3, 'Apple') ;`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliesmaeil%2Fqueries-in-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliesmaeil%2Fqueries-in-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliesmaeil%2Fqueries-in-file/lists"}