# implementing a JDBC like api in PHP

- Thread: https://externals.io/message/3818
- Original archive: https://news-web.php.net/php.internals/3818
- Started by Daniel Penning on 2003-08-07T23:06:04+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3818 — Daniel Penning — 2003-08-07T23:06:04+00:00

URL: https://externals.io/message/3818#3818

Hi

PHP5 should support a standardized oo way to access databases of any
type. I heard that mysqli will include a oo way to access the
database. This api should be the standard for all other database
extensions. All future extensions should have their native functions
as it is now and have to implement the Database api.

An idea of how this api might look like can be seen at
http://home.t-online.de/~s0nix/odbx/mysql.htm
This includes a small implementation based on the mysql extension for
testing purposes.


Daniel Penning

---

## #3820 — Cristiano Duarte — 2003-08-08T03:00:50+00:00

URL: https://externals.io/message/3818#3820 · In reply to: #3818

This discussion simply doesn't belong on internals@, please, take it off
this list.
Try pear.devl.

Cristiano Duarte.


"Daniel Penning" <dpenning@s0nix.de> escreveu na mensagem
news:8554218652.20030808010604@s0nix.de...
> Hi
>
> PHP5 should support a standardized oo way to access databases of any
> type. I heard that mysqli will include a oo way to access the
> database. This api should be the standard for all other database
> extensions. All future extensions should have their native functions
> as it is now and have to implement the Database api.
>
> An idea of how this api might look like can be seen at
> http://home.t-online.de/~s0nix/odbx/mysql.htm
> This includes a small implementation based on the mysql extension for
> testing purposes.
>
>
> Daniel Penning

---

## #3822 — l0t3k — 2003-08-08T03:26:13+00:00

URL: https://externals.io/message/3818#3822 · In reply to: #3818

if you're talking about PHP code, then something like this exists already.
check Pear::DB.
 if you're talking about an extension, Sterling mentioned something like
this on his blog (http://blog.edwardbear.org) about a month back. heck, if
youre sufficiently motivated, i can send you an archive of the work i put
into the one i was writing (currently abandoned).

l0t3k

---

## #3825 — Zeev Suraski — 2003-08-08T09:37:29+00:00

URL: https://externals.io/message/3818#3825 · In reply to: #3818

Do you mind relaxing?  Thank you.

Zeev

At 06:00 08/08/2003, Cristiano Duarte wrote:
>This discussion simply doesn't belong on internals@, please, take it off
>this list.
>Try pear.devl.
>
>Cristiano Duarte.
>
>
>"Daniel Penning" <dpenning@s0nix.de> escreveu na mensagem
>news:8554218652.20030808010604@s0nix.de...
> > […]
