Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliendelplanque/postgresv3
Pharo port of http://www.squeaksource.com/PostgresV3
https://github.com/juliendelplanque/postgresv3
Last synced: 4 days ago
JSON representation
Pharo port of http://www.squeaksource.com/PostgresV3
- Host: GitHub
- URL: https://github.com/juliendelplanque/postgresv3
- Owner: juliendelplanque
- License: mit
- Created: 2015-04-04T13:00:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-05T17:30:34.000Z (almost 5 years ago)
- Last Synced: 2024-10-31T07:05:18.975Z (about 2 months ago)
- Language: Smalltalk
- Size: 207 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# PostgresV3
A Pharo driver for PostreSQL using version 3.0 of the protocol.
It is based on Levente Uzonyi's [PostgresV3 package](http://www.squeaksource.com/PostgresV3.html).## Installation and project start
1. Download the latest [Pharo 4 image](http://files.pharo.org/image/40/latest.zip) from the CI server.
2. Copy/paste the `.image` and `.changes` as `pharo.image` and `pharo.changes`.
3. Fetch the latest changes from Git.
3. Run `$ app install` to load the smalltalk code into the image.
4. Run `$ app start` to start the configured image.## Development
When you're done, commit your changes with Monticello in the filetree repository lying in `repository/`. Switch back to the command line and commit your changes with Git.
## Usage
Example usage:
connectionArgs := PG3ConnectionArguments new
hostname: 'localhost';
username: 'fstephany';
password: '';
port: 5432;
databaseName: 'creative-mons'.
pg := connectionArgs newConnection.
pg startup.
resultSets := pg execute: 'SELECT* FROM entries'.
resultSet := resultSets first.
resultSet rowsWithColumnNameDictionary.