postgres_adapter
Version, currently 0.4.010 versions
github.com/waterlink/postgres_adapter.cr
Postgres adapter for [active_record.cr](https://github.com/waterlink/active_record.cr). Uses [crystal-pg](https://github.com/will/crystal-pg) driver.
Nothing has been indexed for 0.4.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
postgres_adapter:
github: waterlink/postgres_adapter.cr
version: ~> 0.4.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.4.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
postgres_adapter 
Postgres adapter for active_record.cr. Uses crystal-pg driver.
Installation
Add this to your application's shard.yml:
dependencies:
postgres_adapter:
github: waterlink/postgres_adapter.cr
version: ~> 0.4
Usage
require "active_record"
require "postgres_adapter"
class User < ActiveRecord::Model
adapter postgres
# ...
end
Providing postgres connection details
Currently it is done through environment variables:
Either PG_URL:
PG_URL=postgres://<user>:<password>@<host>:<port>/<database>?sslmode=<sslmode>
Or by corresponding components:
PG_USER=<user>
PG_PASS=<password>
PG_HOST=<host>
PG_DATABASE=<database>
PG_SSL_MODE=<sslmode>
Development
After cloning run crystal deps or crystal deps update.
Just use normal TDD cycle. To run tests use:
./bin/test
This will run unit test in spec/ and integration spec in integration/.
Contributing
- Fork it ( https://github.com/waterlink/postgres_adapter.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- waterlink Oleksii Fedorov - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.0- Tagged
- Apr 25, 2017
- Commit
2f91dd4bb01f- Indexed
- not yet
Dependents
Repository
github.com/waterlink/postgres_adapter.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 10