Skip to content

Commit

Permalink
Merge pull request #11 from ba-st/upstream
Browse files Browse the repository at this point in the history
Update baseline dependencies
  • Loading branch information
svenvc authored Dec 11, 2018
2 parents 7574fa1 + 895f714 commit 2fe6124
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
#format : #tonel
}e
}
}
15 changes: 5 additions & 10 deletions BaselineOfP3/BaselineOfP3.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ You could then try (general URL psql://username:password@localhost:5432/database
[ client isWorking ] ensure: [ client close ] ].
The glorp group loads P3DatabaseDriver and the whole of Glorp (warning: large download)
Metacello new
baseline: 'P3';
repository: 'github://svenvc/P3';
load: 'glorp'.
Manually install the driver
Manually install the driver
PharoDatabaseAccessor DefaultDriver: P3DatabaseDriver.
Use a login that looks as follows
Login new
Expand All @@ -46,15 +46,10 @@ BaselineOfP3 >> baselineOf: spec [
<baseline>
spec
for: #common
do: [
do: [
spec baseline: 'NeoJSON' with: [ spec repository: 'github://svenvc/NeoJSON:master/repository' ].
spec baseline: 'ZTimestamp' with: [ spec repository: 'github://svenvc/ztimestamp:master/repository' ].
spec
configuration: 'Glorp'
with: [
spec
versionString: #stable;
repository: 'http://www.smalltalkhub.com/mc/DBXTalk/Configurations/main' ].
spec baseline: 'Glorp' with: [ spec repository: 'github://pharo-rdbms/glorp:master/'].
spec package: 'P3' with: [ spec requires: #('NeoJSON' 'ZTimestamp') ].
spec package: 'P3-Glorp' with: [ spec requires: #('P3' 'Glorp') ].
spec group: 'default' with: #('P3').
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ P3 is a modern, lean and mean PostgreSQL client for Pharo.

[![Build Status](https://travis-ci.org/svenvc/P3.svg?branch=master)](https://travis-ci.org/svenvc/P3)

**P3Client** uses frontend/backend protocol 3.0 (PostgreSQL version 7.4 [2003] and later),
implementing the simple query cycle. It supports plaintext and md5 password authentication.
When SQL queries return row data, it efficiently converts incoming data to objects.
**P3Client** uses frontend/backend protocol 3.0 (PostgreSQL version 7.4 [2003] and later),
implementing the simple query cycle. It supports plaintext and md5 password authentication.
When SQL queries return row data, it efficiently converts incoming data to objects.
P3Client supports most common PostgreSQL types.

P3Client can be configured manually or through a URL.
Expand All @@ -23,13 +23,13 @@ P3Client new url: 'psql://user@localhost'.

P3Client has a minimal public protocol, basically #query: (#execute: is an alias).

Opening a connection to the server (#open) and running the authentication
Opening a connection to the server (#open) and running the authentication
and startup protocols (#connect) are done automatically when needed from #query.

P3Client also supports SSL connections. Use #connectSSL to initiate such a connection.


## Usage
## Usage

Here is the simplest test that does an actual query, it should return true.

Expand Down Expand Up @@ -81,7 +81,7 @@ Finally we can clean up.
```


## References
## References

- https://postgresql.org
- https://en.wikipedia.org/wiki/PostgreSQL
Expand Down Expand Up @@ -124,7 +124,7 @@ Metacello new

The glorp group loads P3DatabaseDriver and the whole of Glorp (warning: large download)

```smalltalk
```smalltalk
Metacello new
baseline: 'P3';
repository: 'github://svenvc/P3';
Expand All @@ -144,5 +144,5 @@ P3ClientTests url: 'psql://sven:secret@localhost:5432/database'.
The minimal being the following:

```smalltalk
P3ClientTests url: 'psql://sven@localhost'.
P3ClientTests url: 'psql://sven@localhost'.
```

0 comments on commit 2fe6124

Please sign in to comment.