|
1 | 1 | DB::Pg – PostgreSQL access for Perl 6 |
2 | 2 | ===================================== |
3 | 3 |
|
4 | | -First of all, this isn't DBI/DBIish. If you want that, you know where |
5 | | -to find it. (if you don't, it's [over |
6 | | -here](https://github.com/perl6/DBIish).) |
7 | | - |
8 | 4 | This is a reimplementation of Perl 6 bindings for PostgreSQL's |
9 | 5 | [libpq](https://www.postgresql.org/docs/current/static/libpq.html). |
10 | 6 |
|
11 | | -Whereas DBI and friends like DBIish are a more generic database |
12 | | -interface, this one is specific to PostgreSQL. If you want to access |
13 | | -other databases, or think you might switch to them at some point, go |
14 | | -look at DBIish. |
15 | | - |
16 | | -Why? |
17 | | ----- |
18 | | - |
19 | | -DBIish, in its existing form, has several limitations, not just in |
20 | | -incomplete implementation (which is true), but also in the overall |
21 | | -architecture and structure make it difficult to work the way I want it |
22 | | -to. I tried several approaches to building a layer on top of DBIish |
23 | | -(or even DBDish::Pg), but eventually it became easier to just |
24 | | -re-implement directly on top of libpq. I understand that DBI itself |
25 | | -has a roadmap, so at some point I may decide to move back to that |
26 | | -world. In the meantime, this meets my needs and has a friendly usage |
27 | | -that make it much easier for me to use than DBIish, so I decided to |
28 | | -release it and perhaps it may help you as well. If you want to use |
29 | | -DBIish, go ahead.. I don't mind. |
30 | | - |
31 | 7 | Basic usage |
32 | 8 | ----------- |
33 | 9 |
|
|
0 commit comments