Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface {
// Server returns the Server that this database belongs to.
Server() Server
// Name returns the name of the database.
Name() string
// Lay returns a Layout struct, which can be queried further.
Lay(string) Layout
// Lays returns the layouts of the database.
Lays() ([]Layout, error)
// Scripts returns an array of the scripts on this database.
//
// TODO: Find out if this is the proper way of representing script. Maybe
// they need their own type?
Scripts() ([]string, error)
// URL returns the url for sending requests to this database.
URL() string
}
Database is the interface of a FileMaker database
type FMRS ¶
type FMRS struct {
XMLName xml.Name `xml:"resultset"`
Count int `xml:"count,attr"`
FetchSize int `xml:"fetch-size,attr"`
Records []FMRSRecord `xml:"record"`
}
type FMRSDataSource ¶
type FMRSDataSource struct {
XMLName xml.Name `xml:"datasource"`
Database string `xml:"database,attr"`
DateFormat string `xml:"date-format,attr"`
Layout string `xml:"layout,attr"`
Table string `xml:"table,attr"`
TimeFormat string `xml:"time-format,attr"`
TimeStampFormat string `xml:"timestamp-format,attr"`
TotalCount int `xml:"total-count,attr"`
}
type FMRSFieldDefinition ¶
type FMRSFieldDefinition struct {
AutoEnter string `xml:"auto-enter,attr"`
FourDigitYear string `xml:"four-digit-year,attr"`
Global string `xml:"global,attr"`
MaxRepeat int `xml:"max-repeat,attr"`
Name string `xml:"name,attr"`
NotEmpty string `xml:"not-empty,attr"`
NumericOnly string `xml:"numeric-only,attr"`
Result string `xml:"result,attr"`
TimeOfDay string `xml:"time-of-day,attr"`
Type string `xml:"type,attr"`
}
type FMRSMetadata ¶
type FMRSMetadata struct {
XMLName xml.Name `xml:"metadata"`
FieldDefinitions []FMRSFieldDefinition `xml:"field-definition"`
}
type FMRSProduct ¶
type FMRSRecord ¶
type FMResultSet ¶
type FMResultSet struct {
XMLName xml.Name `xml:"fmresultset"`
Error FMRSError
Product FMRSProduct
Metadata FMRSMetadata
DataSource FMRSDataSource
ResultSet FMRS
}
Click to show internal directories.
Click to hide internal directories.