Crystal Pq

A "crystal-db"-compliant postgres driver
Alternatives To Crystal Pq
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Migrate11,589594a day ago129March 17, 2022273otherGo
Database migrations. CLI and Golang library.
Pq8,0956,1157,6919 days ago47September 06, 2022298mitGo
Pure Go Postgres driver for database/sql
Usql8,081294 days ago125August 26, 202263mitGo
Universal command-line interface for SQL databases
Yugabyte Db7,844
a day ago5,113otherC
YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
Pgx7,2412,0382 days ago112September 03, 2022107mitGo
PostgreSQL driver and toolkit for Go
Postgres4,6553773 days ago32May 25, 202262unlicenseJavaScript
Postgres.js - The Fastest full featured PostgreSQL client for Node.js and Deno
Psycopg22,94959,6061,4342 days ago53December 29, 202119otherC
PostgreSQL database adapter for the Python programming language
Sqler1,918
2 years ago2July 12, 2021apache-2.0Go
write APIs using direct SQL queries with no hassle, let's rethink about SQL
Pgjdbc1,26626,0041,68011 days ago159May 24, 2022425bsd-2-clauseJava
Postgresql JDBC Driver
Vscode Sqltools1,197127a month ago12March 21, 2021166mitTypeScript
Database management for VSCode
Alternatives To Crystal Pq
Select To Compare


Alternative Project Comparisons
Readme

crystal-pq

A "crystal-db"-compliant postgres driver

Requirements

  • libpq

Usage

  • Add the following to your shards.yml file:
dependencies:
  pq:
    github: abidon/crystal-pq
    branch: master
  • Open a connection to the database
require "db"
require "pq"

DB.open "postgres://localhost:5432/mydb?prepared_statements=false" do |db|
    db.exec "INSERT INTO persons(firstname, lastname) VALUES ($1, $2)", "John", "Doe"
end

Note: At the moment, only unprepared statements have been implemented, you'll need to add the ?prepared_statements=false at the end of the connection string to make it work properly.

Roadmap

  • Implement prepared statements
  • Support postgres connection string parameters

Used in...

License

Copyright 2017 Aurélien Bidon ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Popular Driver Projects
Popular Postgresql Projects
Popular Libraries Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Database
Postgresql
Driver
Crystal