{"id":23359762,"url":"https://github.com/firehed/simpledb","last_synced_at":"2025-04-07T20:46:04.530Z","repository":{"id":62504920,"uuid":"121809611","full_name":"Firehed/SimpleDb","owner":"Firehed","description":"A very simple PDO wrapper","archived":false,"fork":false,"pushed_at":"2018-02-19T22:46:13.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-13T22:26:58.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/Firehed.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}},"created_at":"2018-02-16T22:54:24.000Z","updated_at":"2023-10-10T04:18:54.000Z","dependencies_parsed_at":"2022-11-02T10:15:37.507Z","dependency_job_id":null,"html_url":"https://github.com/Firehed/SimpleDb","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2FSimpleDb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2FSimpleDb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2FSimpleDb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2FSimpleDb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Firehed","download_url":"https://codeload.github.com/Firehed/SimpleDb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247729465,"owners_count":20986392,"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":[],"created_at":"2024-12-21T11:11:54.496Z","updated_at":"2025-04-07T20:46:04.197Z","avatar_url":"https://github.com/Firehed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleDb\nA very simple PDO wrapper\n\nDetailed documentation is coming Soon™.\n\n## API\n\n### `Firehed\\SimpleDb\\SimpleDb`\n\n#### `public function __construct(PDO $pdo)`\nConstructor\n\n#### `public function select(string $query, array $params = []): Generator`\n\nPass in any SELECT query, with colon-prefixed `:placeholder`s.\nFor each of those placeholders, ensure `$params` has a matching key, including the colon.\nThe value can be any scalar type, _or an array of scalar types_ which will automatically be expanded when matched with an `IN()` clause.\nAutomatic `IN` support was the primary motivation behind this library.\n\n#### `public function selectOne(string $query, array $params = []): array`\n\nSame as above, but you get either the first row directly or a `NoResultError` will be thrown.\nNice for primary/unique key `SELECT`s.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fsimpledb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirehed%2Fsimpledb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fsimpledb/lists"}