chore: change module name after fork
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
"github.com/andoma-go/pgx/v5/pgxpool"
|
||||
)
|
||||
|
||||
var pool *pgxpool.Pool
|
||||
|
||||
+11
-11
@@ -48,20 +48,20 @@ Or you can prefix the todo execution with the environment variables:
|
||||
|
||||
# Example Setup and Execution
|
||||
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ createdb todo
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ psql todo < structure.sql
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ createdb todo
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ psql todo < structure.sql
|
||||
Expanded display is used automatically.
|
||||
Timing is on.
|
||||
CREATE TABLE
|
||||
Time: 6.363 ms
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ go build
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ export PGDATABASE=todo
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo list
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo add 'Learn Go'
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo list
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ go build
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ export PGDATABASE=todo
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo add 'Learn Go'
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list
|
||||
1. Learn Go
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo update 1 'Learn more Go'
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo list
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo update 1 'Learn more Go'
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list
|
||||
1. Learn more Go
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo remove 1
|
||||
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo list
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo remove 1
|
||||
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/jackc/pgx/v5"
|
||||
"github.com/andoma-go/pgx/v5"
|
||||
)
|
||||
|
||||
var conn *pgx.Conn
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/jackc/pgx/v5"
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
"github.com/andoma-go/pgx/v5"
|
||||
"github.com/andoma-go/pgx/v5/pgxpool"
|
||||
)
|
||||
|
||||
var db *pgxpool.Pool
|
||||
|
||||
Reference in New Issue
Block a user