From d948b01767f4a72f2bd67990dd18ebaf93dd9139 Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Tue, 11 Dec 2018 11:34:01 -0300 Subject: [PATCH 1/3] Changed Glorp dependencies to use GitHub repository --- .properties | 3 +-- BaselineOfP3/BaselineOfP3.class.st | 15 +++++---------- README.md | 18 +++++++++--------- 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/.properties b/.properties index 4e21084..53a5454 100644 --- a/.properties +++ b/.properties @@ -1,4 +1,3 @@ { #format : #tonel -}e -} \ No newline at end of file +} diff --git a/BaselineOfP3/BaselineOfP3.class.st b/BaselineOfP3/BaselineOfP3.class.st index 0343757..1cb19b1 100644 --- a/BaselineOfP3/BaselineOfP3.class.st +++ b/BaselineOfP3/BaselineOfP3.class.st @@ -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 @@ -46,15 +46,10 @@ BaselineOfP3 >> baselineOf: spec [ 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'). diff --git a/README.md b/README.md index 8f72e59..f0d496f 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ 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) +[![Build Status](https://travis-ci.com/ba-st/P3.svg?branch=master)](https://travis-ci.com/ba-st/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. @@ -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. @@ -81,7 +81,7 @@ Finally we can clean up. ``` -## References +## References - https://postgresql.org - https://en.wikipedia.org/wiki/PostgreSQL @@ -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'; @@ -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'. ``` From ebb9b3c936e4e773cfee0a20112245a8f7e77b80 Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Tue, 11 Dec 2018 11:37:42 -0300 Subject: [PATCH 2/3] Fixed missing . --- BaselineOfP3/BaselineOfP3.class.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaselineOfP3/BaselineOfP3.class.st b/BaselineOfP3/BaselineOfP3.class.st index 1cb19b1..a0a0497 100644 --- a/BaselineOfP3/BaselineOfP3.class.st +++ b/BaselineOfP3/BaselineOfP3.class.st @@ -49,7 +49,7 @@ BaselineOfP3 >> baselineOf: spec [ do: [ spec baseline: 'NeoJSON' with: [ spec repository: 'github://svenvc/NeoJSON:master/repository' ]. spec baseline: 'ZTimestamp' with: [ spec repository: 'github://svenvc/ztimestamp:master/repository' ]. - spec baseline: 'Glorp' with: [ spec repository: 'github://pharo-rdbms/glorp:master/'] + 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'). From 895f714762875967e9fec79a2e18e2880246d96f Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Tue, 11 Dec 2018 11:45:36 -0300 Subject: [PATCH 3/3] Restore build status badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f0d496f..e807651 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ P3 is a modern, lean and mean PostgreSQL client for Pharo. -[![Build Status](https://travis-ci.com/ba-st/P3.svg?branch=master)](https://travis-ci.com/ba-st/P3) +[![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.