{"id":16015252,"url":"https://github.com/djdeveloperr/postquery","last_synced_at":"2025-10-10T18:44:32.290Z","repository":{"id":48787039,"uuid":"340325735","full_name":"DjDeveloperr/PostQuery","owner":"DjDeveloperr","description":"An easy to use Query Client for Deno Postgres.","archived":false,"fork":false,"pushed_at":"2021-07-12T08:33:25.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T16:58:04.105Z","etag":null,"topics":["client","database","deno","postgres","query","sql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/DjDeveloperr.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}},"created_at":"2021-02-19T09:52:08.000Z","updated_at":"2021-11-03T05:23:41.000Z","dependencies_parsed_at":"2022-07-26T00:47:09.478Z","dependency_job_id":null,"html_url":"https://github.com/DjDeveloperr/PostQuery","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2FPostQuery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2FPostQuery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2FPostQuery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2FPostQuery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DjDeveloperr","download_url":"https://codeload.github.com/DjDeveloperr/PostQuery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127264,"owners_count":21052220,"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":["client","database","deno","postgres","query","sql"],"created_at":"2024-10-08T15:22:12.452Z","updated_at":"2025-10-10T18:44:32.209Z","avatar_url":"https://github.com/DjDeveloperr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostQuery\r\n\r\nAn easy to use Query Client for Deno Postgres.\r\n\r\n## Docs\r\n\r\nDocs are available [here](https://doc.deno.land/https/deno.land/x/postquery/mod.ts).\r\n\r\n## Usage\r\n\r\n```ts\r\nimport { QueryClient, DataType, CreateTableMode, Constraint } from \"https://deno.land/x/postquery/mod.ts\";\r\n\r\nconst client = new QueryClient(/* Connection URI or Connection Object */);\r\nconst users = client.table\u003c{\r\n  id: number,\r\n  name: string,\r\n}\u003e(\"users\");\r\n\r\nawait users.create({\r\n  id: {\r\n    type: DataType.Integer,\r\n    constraint: Constraint.PrimaryKey,\r\n  },\r\n  name: {\r\n    type: DataType.VarChar,\r\n    length: 20,\r\n  }\r\n}, CreateTableMode.DropIfExists);\r\n\r\nawait users.insert({\r\n  id: 1,\r\n  name: \"User 1\",\r\n}, {\r\n  id: 2,\r\n  name: \"User 2\",\r\n}, {\r\n  id: 3,\r\n  name: \"User 3\",\r\n});\r\n\r\nawait users.where({\r\n  id: 2\r\n}).select(\"name\"); // { name: \"User 2\" }\r\n\r\nawait users.where().limit(2).select(); \r\n// [ { id: 1, name: \"User 1\" }, { id: 2, name: \"User 2\" } ]\r\n\r\nawait users.where({ id: 1 }).delete();\r\n\r\nawait users.where({\r\n  id: 1\r\n}).select(); // []\r\n```\r\n\r\n## Contributing\r\n\r\nYou're always welcome to contribute!\r\n\r\n- We use `deno fmt` for our code style.\r\n- We use `deno lint` for linting code.\r\n\r\n## License\r\n\r\nCheck [LICENSE](LICENSE) for more info.\r\n\r\nCopyright 2021 @ DjDeveloperr","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdeveloperr%2Fpostquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjdeveloperr%2Fpostquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdeveloperr%2Fpostquery/lists"}