{"id":17912670,"url":"https://github.com/danielgatis/go-asql","last_synced_at":"2025-04-03T07:14:02.251Z","repository":{"id":190900167,"uuid":"675913065","full_name":"danielgatis/go-asql","owner":"danielgatis","description":"A Go package that makes it easier to run SQL queries async","archived":false,"fork":false,"pushed_at":"2023-08-08T02:53:33.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T20:47:33.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/danielgatis.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-08-08T02:52:59.000Z","updated_at":"2023-08-08T02:53:37.000Z","dependencies_parsed_at":"2023-08-27T01:54:21.684Z","dependency_job_id":null,"html_url":"https://github.com/danielgatis/go-asql","commit_stats":null,"previous_names":["danielgatis/go-asql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-asql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-asql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-asql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-asql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielgatis","download_url":"https://codeload.github.com/danielgatis/go-asql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246952278,"owners_count":20859812,"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":[],"created_at":"2024-10-28T19:46:28.685Z","updated_at":"2025-04-03T07:14:02.223Z","avatar_url":"https://github.com/danielgatis.png","language":"Go","funding_links":["https://www.buymeacoffee.com/danielgatis"],"categories":[],"sub_categories":[],"readme":"# Go - Asql\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/danielgatis/go-asql?style=flat-square)](https://goreportcard.com/report/github.com/danielgatis/go-asql)\n[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/danielgatis/go-asql/master/LICENSE)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/danielgatis/go-asql)\n\nA Go package that makes it easier to run SQL queries async\n\n## Install\n\n```bash\ngo get -u github.com/danielgatis/go-asql\n```\n\nAnd then import the package in your code:\n\n```go\nimport \"github.com/danielgatis/go-asql\"\n```\n\n### Usage\n\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/danielgatis/go-asql\"\n\t_ \"github.com/mattn/go-sqlite3\"\n)\n\nfunc main() {\n\ttype TestTable struct {\n\t\tID   int\n\t\tName string\n\t}\n\n\tdb, _ := asql.Open(\"sqlite3\", \"file::memory:\")\n\tdb.Load(\"testdata/schema.sql\")\n\n\trc, _ := db.Query(`select * from test_table`)\n\trows := \u003c-rc\n\n\trecords := make([]TestTable, 0)\n\n\tfor rows.Next() {\n\t\tvar record TestTable\n\t\trows.Scan(\u0026record.ID, \u0026record.Name)\n\t\trecords = append(records, record)\n\t}\n\n\tfmt.Print(records)\n}\n```\n\n### License\n\nCopyright (c) 2023-present [Daniel Gatis](https://github.com/danielgatis)\n\nLicensed under [MIT License](./LICENSE)\n\n### Buy me a coffee\n\nLiked some of my work? Buy me a coffee (or more likely a beer)\n\n\u003ca href=\"https://www.buymeacoffee.com/danielgatis\" target=\"_blank\"\u003e\u003cimg src=\"https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fgo-asql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgatis%2Fgo-asql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fgo-asql/lists"}