database

package
v0.0.0-...-ee8d925 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter implements the DBPort interface.

func NewAdapter

func NewAdapter(driverName, dataSourceName string) (*Adapter, error)

NewAdapter creates a new Adapter.

func (Adapter) AddToHistory

func (dbAdapter Adapter) AddToHistory(message string) error

AddToHistory adds the helloworld message to the database history table.

func (Adapter) CloseDBConnection

func (dbAdapter Adapter) CloseDBConnection() error

CloseDBConnection closes the db connection.

func (Adapter) CreateTable

func (dbAdapter Adapter) CreateTable() error

CreateTable create the default 'hello_history' table.

Jump to

Keyboard shortcuts

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