pgsqlcrud

command module
v0.0.0-...-cecfe9f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 7 Imported by: 0

README

Run docker posgres container with:

docker run --name pg-container -e POSTGRES_PASSWORD=secret -p 5432:5432 -d postgres

Create database with

docker exec -it pg-container createdb -U postgres gopgtest

Connect to pg with

docker exec -it pg-container psql -U postgres

Connect to database (default db name = postgres) with

\c gopgtest

Display tables

\dt

Create migrations

sqlc generate

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL