mirror of https://github.com/VinGarcia/ksql.git
Update README.md
parent
758f81e3fb
commit
cf25954f0b
24
README.md
24
README.md
|
@ -99,29 +99,39 @@ the other ones have the exact same signature
|
||||||
but work on different databases or driver versions,
|
but work on different databases or driver versions,
|
||||||
they are:
|
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
|
```bash
|
||||||
go get github.com/vingarcia/ksql/adapters/kpgx
|
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
|
```bash
|
||||||
go get github.com/vingarcia/ksql/adapters/kpgx5
|
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
|
```bash
|
||||||
go get github.com/vingarcia/ksql/adapters/kmysql
|
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
|
```bash
|
||||||
go get github.com/vingarcia/ksql/adapters/ksqlserver
|
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`
|
- `ksqlite3.New(ctx, os.Getenv("DATBAASE_PATH"), ksql.Config{})` for SQLite3, it works on top of `database/sql`
|
||||||
and `mattn/go-sqlite3` which relies on CGO.
|
and [mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) which relies on CGO, download it with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/vingarcia/ksql/adapters/ksqlite3
|
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`
|
- `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
|
```bash
|
||||||
go get github.com/vingarcia/ksql/adapters/modernc-ksqlite
|
go get github.com/vingarcia/ksql/adapters/modernc-ksqlite
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue