{"id":15404545,"url":"https://github.com/k1low/qp","last_synced_at":"2025-04-16T21:29:48.958Z","repository":{"id":43041085,"uuid":"472652989","full_name":"k1LoW/qp","owner":"k1LoW","description":"Printer that prints the results of a query to the database.","archived":false,"fork":false,"pushed_at":"2022-03-23T22:30:54.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-29T05:41:34.601Z","etag":null,"topics":["database","go","printer","sql"],"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/k1LoW.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-22T07:13:30.000Z","updated_at":"2024-08-10T09:50:55.000Z","dependencies_parsed_at":"2022-08-29T11:30:33.823Z","dependency_job_id":null,"html_url":"https://github.com/k1LoW/qp","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/k1LoW%2Fqp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fqp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fqp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fqp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/qp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249279084,"owners_count":21242844,"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":["database","go","printer","sql"],"created_at":"2024-10-01T16:13:38.818Z","updated_at":"2025-04-16T21:29:48.931Z","avatar_url":"https://github.com/k1LoW.png","language":"Go","readme":"# qp\n\nPrinter that prints the results of a query to the database.\n\n## Usage\n\n``` go\npackage main\n\nimport (\n\t\"database/sql\"\n\t\"log\"\n\n\t\"github.com/k1LoW/qp\"\n\t_ \"github.com/mattn/go-sqlite3\"\n)\n\nfunc main() {\n\tdb, err := sql.Open(\"sqlite3\", \"path/to/db\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer db.Close()\n\n\tqp.Print(db, \"SELECT * FROM users WHERE username = 'alice'\")\n}\n```\n\n``` console\n$ go run main.go\n+----+----------+----------+-------------------+---------------------+---------+\n| id | username | password |       email       |       created       | updated |\n+----+----------+----------+-------------------+---------------------+---------+\n|  1 | alice    | passw0rd | alice@example.com | 2017-12-05 00:00:00 | \u003cnil\u003e   |\n+----+----------+----------+-------------------+---------------------+---------+\n(1 row)\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fqp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Fqp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fqp/lists"}