database

package
v0.0.0-...-4fe6537 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Field string
	Value string
	Op    string
}

type IDatabase

type IDatabase interface {
	ExecWithContext(ctx context.Context, queryString string, opt ...interface{}) (string, error)
}

type ITransaction

type ITransaction interface {
	ExecWithContext(ctx context.Context, queryString string, opt ...interface{}) (string, error)
	Commit() error
	RollBack() error
}

type SqlQuery

type SqlQuery struct {
	Count      string   `json:"count"`
	GroupBy    []string `json:"group_by"`
	OrderBy    string   `json:"order_by"`
	TableName  string   `json:"table_name"`
	Conditions []Condition
}

func ParseQueryString

func ParseQueryString(queryString string) (*SqlQuery, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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