sql

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Overview

Package sql provides some utility functions for working with sql databases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlClient

type SqlClient struct {
	*sqlx.DB
	// contains filtered or unexported fields
}

func New

func New(driverName, dataSourceName string) (*SqlClient, error)

type Table

type Table interface {
	TableName() string
}

Table is an interface that should be implemented by all models which represents a table in the database

Jump to

Keyboard shortcuts

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