postgres

package
v0.0.0-...-8462c57 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 9 Imported by: 0

README

Postgre

Put implementation for handling PostgreSQL.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCursor

func DecodeCursor(csr string) (timestamp int64, err error)

DecodeCursor will decode the cursor string into timestamp

func EncodeCursor

func EncodeCursor(timestamp int64) (res string)

EncodeCursor will encode the given data to Base64 format for cursor

Types

type Suite

type Suite struct {
	suite.Suite
	DSN                     string
	DBConn                  *sql.DB
	Migration               *migration
	MigrationLocationFolder string
	DBName                  string
}

Suite struct for MySQL Suite

func (*Suite) SetupSuite

func (s *Suite) SetupSuite()

SetupSuite setup at the beginning of test

func (*Suite) TearDownSuite

func (s *Suite) TearDownSuite()

TearDownSuite teardown at the end of test

Jump to

Keyboard shortcuts

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