{"id":18431778,"url":"https://github.com/zztkm/sqlc-python-example","last_synced_at":"2025-04-14T01:18:23.823Z","repository":{"id":110088867,"uuid":"538867908","full_name":"zztkm/sqlc-python-example","owner":"zztkm","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-20T08:00:55.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T01:18:03.257Z","etag":null,"topics":["python","sqlc"],"latest_commit_sha":null,"homepage":"","language":"Python","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/zztkm.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-09-20T07:45:03.000Z","updated_at":"2022-09-20T08:00:06.000Z","dependencies_parsed_at":"2023-05-06T06:46:54.770Z","dependency_job_id":null,"html_url":"https://github.com/zztkm/sqlc-python-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zztkm%2Fsqlc-python-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zztkm%2Fsqlc-python-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zztkm%2Fsqlc-python-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zztkm%2Fsqlc-python-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zztkm","download_url":"https://codeload.github.com/zztkm/sqlc-python-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804823,"owners_count":21164135,"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":["python","sqlc"],"created_at":"2024-11-06T05:26:16.363Z","updated_at":"2025-04-14T01:18:23.790Z","avatar_url":"https://github.com/zztkm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting started sqlc with Python\n\nsql v1.15.0 時点では Python は PostgreSQL しかサポートされていませんでした。\n\nMySQL と SQLite の場合、コードは生成されますが型は自分でつける必要がありそうです。\n\nサポートについては以下を参照してください。\n- https://docs.sqlc.dev/en/latest/reference/language-support.html\n\n## SQL生成\n\n以下を実行するには sqlc のインストールが必要です。\nhttps://docs.sqlc.dev/en/latest/overview/install.html\n\n```shell\n# example sqlite\ncd sqlite\n\n# コマンドを実行すると db dir が上書きされます\nsqlc generate\n```\n\nroot から見て `sqlite/db` ディレクトリにファイルが生成されているのでそれを確認してください。\n\n## 参考\n\n- https://docs.sqlc.dev/en/latest/index.html\n- https://docs.sqlc.dev/en/latest/reference/config.html#python\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzztkm%2Fsqlc-python-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzztkm%2Fsqlc-python-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzztkm%2Fsqlc-python-example/lists"}