Crystal Pq

A "crystal-db"-compliant postgres driver
Alternatives To Crystal Pq
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Migrate12,2738156 days ago132June 11, 2023294otherGo
Database migrations. CLI and Golang library.
Pq8,2426,11511,010a month ago49April 26, 2023301mitGo
Pure Go Postgres driver for database/sql
Yugabyte Db8,091
7 hours ago5,361otherC
YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
Pgx7,7903,333a day ago114February 28, 2023128mitGo
PostgreSQL driver and toolkit for Go
Postgres4,96631656 days ago38May 31, 202350unlicenseJavaScript
Postgres.js - The Fastest full featured PostgreSQL client for Node.js and Deno
Psycopg23,0346,0311,89310 hours ago21August 05, 202318otherC
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,31126,0042,24421 days ago178March 17, 2023447bsd-2-clauseJava
Postgresql JDBC Driver
Vscode Sqltools1,281161a month ago13October 16, 2022191mitTypeScript
Database management for VSCode
Psycopg1,20538138a day ago32August 05, 202341lgpl-3.0Python
New generation PostgreSQL database adapter for the Python programming language
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
Postgres
Postgresql
Driver
Crystal