Skip to content

Commit cd535bc

Browse files
committed
trim intro, bump version
1 parent a383d24 commit cd535bc

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

META6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "DB::Pg",
33

4-
"version" : "0.1",
4+
"version" : "0.2",
55

66
"source-url" : "https://github.com/CurtTilmes/perl6-dbpg.git",
77

README.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,9 @@
11
DB::Pg – PostgreSQL access for Perl 6
22
=====================================
33

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-
84
This is a reimplementation of Perl 6 bindings for PostgreSQL's
95
[libpq](https://www.postgresql.org/docs/current/static/libpq.html).
106

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-
317
Basic usage
328
-----------
339

eg/parallel.pl6

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use DB::Pg;
44

55
my $pg = DB::Pg.new;
66

7-
say await do for ^10
8-
{
7+
say await do for ^10 {
98
start $pg.query('select $1::int, pg_sleep($1::float/10)', $_).value
109
}

0 commit comments

Comments
 (0)