{"id":22101197,"url":"https://github.com/ndlinh/t2t","last_synced_at":"2025-03-24T02:20:30.215Z","repository":{"id":150865039,"uuid":"141525587","full_name":"ndlinh/t2t","owner":"ndlinh","description":"MySQL tables to golang structs","archived":false,"fork":false,"pushed_at":"2018-07-19T05:48:12.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T08:26:30.371Z","etag":null,"topics":["generated-code","golang"],"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/ndlinh.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":"2018-07-19T04:45:53.000Z","updated_at":"2019-01-17T08:42:25.000Z","dependencies_parsed_at":"2023-06-28T20:53:12.542Z","dependency_job_id":null,"html_url":"https://github.com/ndlinh/t2t","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/ndlinh%2Ft2t","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndlinh%2Ft2t/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndlinh%2Ft2t/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndlinh%2Ft2t/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndlinh","download_url":"https://codeload.github.com/ndlinh/t2t/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245196079,"owners_count":20575958,"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":["generated-code","golang"],"created_at":"2024-12-01T05:23:56.179Z","updated_at":"2025-03-24T02:20:30.196Z","avatar_url":"https://github.com/ndlinh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nThis package provide helper functions for generate go struct from MySQL table.\nGenerated structs that can be use with https://github.com/jmoiron/sqlx/ package.\n\n# How to use\n\n## Installation\n\n    go get github.com/jmoiron/sqlx\n\n    go get -u github.com/ndlinh/t2t\n\n# Usage\n\n    t2t -dsn \u003cdsn\u003e -p \u003cpackage name\u003e [-o output directory] [-t tables]\n\n    Options:\n\n    -dsn string\n    \tDB connect DSN. Ex: root:root@localhost/flarum\n    -o string\n            Optional. Output directory. Use current directory if empty\n    -p string\n            Package name\n    -t string\n            Optional. Tables to export. Use commas to separate table's name\n\n\n    Ex: t2t -p \"test\" -o \"./test\" -t \"users_tags\" -dsn \"root:root@localhost/flarum_test\"\n\n# Todos\n\n- [ ] Writing tests\n- [ ] PostgreSQL dialect\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndlinh%2Ft2t","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndlinh%2Ft2t","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndlinh%2Ft2t/lists"}