sqlstore

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 6 Imported by: 0

README

Running tests towards local database

Get postgres docker image

docker pull postgres

Run postgres image and forward port to localhost

docker run --name postgres -e POSTGRES_PASSWORD=your_password -p 5432:5432 postgres

Connect to postgres database and create events table

docker run -it --rm --link postgres:postgres postgres psql -h postgres -U postgres

Paste contents of schema.sql to create table.

Run tests

env POSTGRES_CONN_STRING="user=postgres password=your_password sslmode=disable" go test -v

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB, tableName string) eventsource.Store

New ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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