informix

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package informix includes implementation of the Provider interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IfxProvider

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

IfxProvider struct is the structure implementing Provider interface

func New

func New(configPath string) (IfxProvider, error)

New creates new Informix Provider

func (IfxProvider) DateFormat

func (ifx IfxProvider) DateFormat() string

DateFormat is interface function.

func (IfxProvider) DateTimeFormat

func (ifx IfxProvider) DateTimeFormat() string

DateTimeFormat is interface function.

func (IfxProvider) GetTableDescription

func (ifx IfxProvider) GetTableDescription(name string) (dsc []providers.Describe, err error)

GetTableDescription retrieves basic table description from database. Using describe.sql it retrieves info about every column of table.

func (*IfxProvider) Initialize

func (ifx *IfxProvider) Initialize(configPath string) (err error)

Initialize reads config and returns the provider with configuration read from the config. By default it is called by New function, but can be used standalone.

func (IfxProvider) ProviderName

func (ifx IfxProvider) ProviderName() string

ProviderName is interface function.

Jump to

Keyboard shortcuts

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