{"id":15372979,"url":"https://github.com/rs/mydbd","last_synced_at":"2025-06-19T06:40:17.294Z","repository":{"id":532910,"uuid":"162010","full_name":"rs/mydbd","owner":"rs","description":"A mysqli OO interface with PEAR::DB API compatibility","archived":false,"fork":false,"pushed_at":"2009-05-03T21:02:56.000Z","size":112,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T06:04:16.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/rs.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":"2009-03-28T21:36:37.000Z","updated_at":"2019-08-13T14:13:10.000Z","dependencies_parsed_at":"2022-08-16T10:30:24.809Z","dependency_job_id":null,"html_url":"https://github.com/rs/mydbd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rs/mydbd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Fmydbd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Fmydbd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Fmydbd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Fmydbd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rs","download_url":"https://codeload.github.com/rs/mydbd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Fmydbd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260703922,"owners_count":23049451,"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-10-01T13:53:52.229Z","updated_at":"2025-06-19T06:40:12.271Z","avatar_url":"https://github.com/rs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"MyDBD is a wrapper around mysqli compatible with PEAR::Db and inspired from DBI API. This\nis not an abstraction layer meant to handle several type of databases, thus the abstraction\ncode overhead is very low.\n\n### Example Usage\n\n    $dbh = new MyDBD('hostname' =\u003e 'localhost'));\n    $res = $dbh-\u003equery('SELECT field1, field2 FROM table WHERE foo = ?', array('bar'));\n    \n    foreach ($res as $row)\n    {\n        printf(\"field1: %s, field2: %s\\n\", $row[0], $row[1]);\n    }\n    \n    $res-\u003esetFetchMode(MyDBD_ResultSet::FETCHMODE_ASSOC);\n    \n    foreach ($res as $row)\n    {\n        printf(\"field1: %s, field2: %s\\n\", $row['field1'], $row['field2']);\n    }\n    \n    $sth = $dbh-\u003eprepare('INSERT INTO table (field1, field2) VALUES(?, ?)');\n    \n    foreach ($myData as $row)\n    {\n        $sth-\u003eexecute($row[0], $row[1]);\n    }\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frs%2Fmydbd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frs%2Fmydbd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frs%2Fmydbd/lists"}