Skip to content

willtrking/pgsqlxx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgsqlxx

This is simply an attempt to have https://github.com/jmoiron/sqlx and https://github.com/jackc/pgx interop together directly, rather then through pgx/stdlib. Unfortunately some of sqlx needs to be reimplemented in order to achieve this, but ideally this will be kept to a minimum.

Why?

sqlx and pgx are both great libraries, and having some of the sqlx functionality work directly with pgx makes using pgx specific funtionality simpler/possible, as well as leading to improved performance (hopefully?)

Reimplementation of sqlx

Whenever I reimplement (read: pretty much copy paste) sqlx functionality in this library, I make a point of commenting a link to the the exact line and commit in Github the code block is coming from. This is mostly caused by certain struct attributes / functions being private to the sqlx package. If they are ever made public, or have some way to publicly interop with them, these reimplementations won't be necessary.

Naming of functions

Any function suffixed with x represents functionality achieved through sqlx, OR new functionality implemented in this library. Any function suffixed with xx represents a function in pgx that is also suffixed with x

Status

VERY much a work in progress.

Thanks

BIG THANKS to the authors of both pgx (https://github.com/jackc) and sqlx (https://github.com/jmoiron). This would not be possible without them.

About

sqlx functionality for pgx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages