dataX

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

dataX

dataX is a wrapper and transaction manager for jmoiron/sqlx and mongodb

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	Port     string
	UserName string
	Password string
	Database string
}

type Database

type Database interface {
	GetDatabaseName() string
	GetUri() string
	GetConnection() (interface{}, error)
	Ping() error
}

type TransactionManager

type TransactionManager interface {
	Begin(ctx context.Context) error
	Commit() error
	Rollback() error
	GetTransaction() interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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