{"id":15024855,"url":"https://github.com/harryvolek/aisql","last_synced_at":"2025-04-12T12:52:03.066Z","repository":{"id":65522065,"uuid":"593894527","full_name":"HarryVolek/aisql","owner":"HarryVolek","description":"Use GPT to generate SQL","archived":false,"fork":false,"pushed_at":"2023-03-30T21:42:03.000Z","size":5,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T07:36:30.144Z","etag":null,"topics":["chatgpt","gpt-3","postgres","psql","sql","text2sql"],"latest_commit_sha":null,"homepage":"","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/HarryVolek.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-27T04:36:16.000Z","updated_at":"2023-04-20T11:38:44.000Z","dependencies_parsed_at":"2025-02-21T13:45:44.892Z","dependency_job_id":null,"html_url":"https://github.com/HarryVolek/aisql","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarryVolek%2Faisql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarryVolek%2Faisql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarryVolek%2Faisql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarryVolek%2Faisql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HarryVolek","download_url":"https://codeload.github.com/HarryVolek/aisql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571561,"owners_count":21126519,"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":["chatgpt","gpt-3","postgres","psql","sql","text2sql"],"created_at":"2024-09-24T20:01:04.432Z","updated_at":"2025-04-12T12:52:03.042Z","avatar_url":"https://github.com/HarryVolek.png","language":"Go","readme":"Convert text prompts to sql for your postgres db.\n\nGrabs database DDL to use in the GPT prompts, creating working queries.\n\nTo run:\n`\n go run aisql.go -K [openai auth key] -C '[postgres connection string]'\n`\n\nExample:\n```\n-\u003e Give me all animals who's name starts with D\nResponse start=======\nSELECT * \nFROM animals \nWHERE name LIKE 'D%' -- This query will return all animals whose name starts with the letter D. The LIKE operator is used to search for a pattern in a column. The '%' wildcard character is used to match any number of characters after the letter D.\nResponse finish======\nExecute query? [y/N]\ny\n id  |   name    |   type   | age |      registered_at       |              image               | owner_id \n-----+-----------+----------+-----+--------------------------+----------------------------------+----------\n  54 | Devon Rex | insect   |  14 | 2021-06-18T20:40:34.991Z | http://placeimg.com/640/480/cats |       17 \n 104 | Devon Rex | cetacean |   4 | 2021-11-02T06:34:56.853Z | http://placeimg.com/640/480/cats |       37 \n(2 rows)\n-\u003e \n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharryvolek%2Faisql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharryvolek%2Faisql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharryvolek%2Faisql/lists"}