Documentation ¶
Overview ¶
Package odbc provides facilities for odbc declarations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct { XMLName xml.Name `xml:"bundle"` ID string `xml:"id,attr"` Comment string `xml:",comment"` BundlesAndFields }
type BundlesAndFields ¶
type Server ¶
type Server struct { XMLName xml.Name `xml:"server"` URL string `xml:"url"` Database string `xml:"database"` Port int `xml:"port"` User string `xml:"user"` Password string `xml:"password"` Tables []Table `xml:"table"` }
Server represents an odbc server implementation. It is the main interface to ODBC.
It can be passed to xml.Marshal and xml.Unmarshal.
func NewServer ¶
func NewServer(pb pathbuilder.Pathbuilder) (s Server)
NewServer generates a new server from a pathbuilder
type Table ¶
type Table struct { XMLName xml.Name `xml:"table"` Select string `xml:"select"` Name string `xml:"name"` Append string `xml:"append"` Delimiter string `xml:"delimiter"` ID string `xml:"id"` Trim xmltypes.BoolAsString `xml:"trim"` Row struct { BundlesAndFields } `xml:"row"` }
func (Table) MainBundleID ¶
MainBundleID returns the main bundle id corresponding to this table
Click to show internal directories.
Click to hide internal directories.