Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VinGarcia authored Oct 20, 2023
1 parent 758f81e commit cf25954
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,29 +99,39 @@ the other ones have the exact same signature
but work on different databases or driver versions,
they are:

- `kpgx.New(ctx, os.Getenv("DATABASE_URL"), ksql.Config{})` for Postgres, it works on top of `pgxpool` and pgx version 4
- `kpgx.New(ctx, os.Getenv("DATABASE_URL"), ksql.Config{})` for Postgres, it works on top of `pgxpool`
and [pgx](https://github.com/jackc/pgx) version 4, download it with:

```bash
go get github.com/vingarcia/ksql/adapters/kpgx
```
- `kpgx5.New(ctx, os.Getenv("DATABASE_URL"), ksql.Config{})` for Postgres, it works on top of `pgxpool` and pgx version 5
- `kpgx5.New(ctx, os.Getenv("DATABASE_URL"), ksql.Config{})` for Postgres, it works on top of `pgxpool`
and [pgx](https://github.com/jackc/pgx) version 5, download it with:

```bash
go get github.com/vingarcia/ksql/adapters/kpgx5
```
- `kmysql.New(ctx, os.Getenv("DATABASE_URL"), ksql.Config{})` for MySQL, it works on top of `database/sql`
- `kmysql.New(ctx, os.Getenv("DATABASE_URL"), ksql.Config{})` for MySQL, it works on top of `database/sql`,
download it with:

```bash
go get github.com/vingarcia/ksql/adapters/kmysql
```
- `ksqlserver.New(ctx, os.Getenv("DATABASE_URL"), ksql.Config{})` for SQLServer, it works on top of `database/sql`
- `ksqlserver.New(ctx, os.Getenv("DATABASE_URL"), ksql.Config{})` for SQLServer, it works on top of `database/sql`,
download it with:

```bash
go get github.com/vingarcia/ksql/adapters/ksqlserver
```
- `ksqlite3.New(ctx, os.Getenv("DATABASE_PATH"), ksql.Config{})` for SQLite3, it works on top of `database/sql`
and `mattn/go-sqlite3` which relies on CGO.
- `ksqlite3.New(ctx, os.Getenv("DATBAASE_PATH"), ksql.Config{})` for SQLite3, it works on top of `database/sql`
and [mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) which relies on CGO, download it with:

```bash
go get github.com/vingarcia/ksql/adapters/ksqlite3
```
- `ksqlite.New(ctx, os.Getenv("DATABASE_PATH"), ksql.Config{})` for SQLite, it works on top of `database/sql`
and `modernc.org/sqlite` which does not require CGO.
and [modernc.org/sqlite](https://modernc.org/sqlite) which does not require CGO, download it with:

```bash
go get github.com/vingarcia/ksql/adapters/modernc-ksqlite
```
Expand Down

0 comments on commit cf25954

Please sign in to comment.