Documentation
¶
Index ¶
- Constants
- Variables
- type DataSource
- type FMAction
- type FMConnector
- type FMError
- type FMFieldOp
- type FMLogicalOp
- type FMQuery
- func (q *FMQuery) Max(n int) *FMQuery
- func (q *FMQuery) QueryString() string
- func (q *FMQuery) Skip(n int) *FMQuery
- func (q *FMQuery) WithFieldGroups(fieldGroups ...FMQueryFieldGroup) *FMQuery
- func (q *FMQuery) WithFields(fields ...FMQueryField) *FMQuery
- func (q *FMQuery) WithPostFindScript(script, param string) *FMQuery
- func (q *FMQuery) WithPreFindScript(script, param string) *FMQuery
- func (q *FMQuery) WithPreSortScript(script, param string) *FMQuery
- func (q *FMQuery) WithRecordId(id int) *FMQuery
- func (q *FMQuery) WithResponseFields(fields ...string) *FMQuery
- func (q *FMQuery) WithResponseLayout(lay string) *FMQuery
- func (q *FMQuery) WithSortFields(sortFields ...FMSortField) *FMQuery
- type FMQueryField
- type FMQueryFieldGroup
- type FMResultset
- type FMSortField
- type FMSortOrder
- type Field
- type Record
- type RelatedSet
- type Resultset
Constants ¶
View Source
const (
FMDBNames = "-dbnames"
)
Variables ¶
View Source
var FileMakerErrorCodes = map[int]string{}/* 243 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type FMConnector ¶
type FMConnector struct { Host string Port string Username string Password string Client *http.Client }
func NewFMConnector ¶
func NewFMConnector(host string, port string, username string, password string) *FMConnector
func (*FMConnector) Ping ¶
func (fmc *FMConnector) Ping() error
func (*FMConnector) Query ¶
func (fmc *FMConnector) Query(q *FMQuery) (FMResultset, error)
type FMLogicalOp ¶
type FMLogicalOp string
const ( And FMLogicalOp = "and" Or FMLogicalOp = "or" Not FMLogicalOp = "not" )
type FMQuery ¶
type FMQuery struct { Database string Layout string Action FMAction QueryFields []FMQueryFieldGroup SortFields []FMSortField RecordId int // default should be -1 PreSortScript string PreFindScript string PostFindScript string PreSortScriptParam string PreFindScriptParam string PostFindScriptParam string ResponseLayout string ResponseFields []string MaxRecords int // default should be -1 SkipRecords int // default should be 0 Query map[string]string }
func (*FMQuery) QueryString ¶
func (*FMQuery) WithFieldGroups ¶
func (q *FMQuery) WithFieldGroups(fieldGroups ...FMQueryFieldGroup) *FMQuery
func (*FMQuery) WithFields ¶
func (q *FMQuery) WithFields(fields ...FMQueryField) *FMQuery
func (*FMQuery) WithPostFindScript ¶
func (*FMQuery) WithPreFindScript ¶
func (*FMQuery) WithPreSortScript ¶
func (*FMQuery) WithRecordId ¶
func (*FMQuery) WithResponseFields ¶
func (*FMQuery) WithResponseLayout ¶
func (*FMQuery) WithSortFields ¶
func (q *FMQuery) WithSortFields(sortFields ...FMSortField) *FMQuery
type FMQueryField ¶
type FMQueryFieldGroup ¶
type FMQueryFieldGroup struct { Op FMLogicalOp Fields []FMQueryField }
type FMResultset ¶
type FMResultset struct { Resultset *Resultset `xml:"resultset"` DataSource *DataSource `xml:"datasource"` Version string `xml:"version,attr"` FMError FMError `xml:"error"` }
func (*FMResultset) HasError ¶
func (rs *FMResultset) HasError() bool
type FMSortField ¶
type FMSortField struct { Name string Order FMSortOrder }
type FMSortOrder ¶
type FMSortOrder string
const ( Ascending FMSortOrder = "ascend" Descending FMSortOrder = "descend" Custom FMSortOrder = "custom" )
func (FMSortOrder) String ¶
func (so FMSortOrder) String() string
type Record ¶
type Record struct { ID int `xml:"record-id,attr"` Fields []*Field `xml:"field"` RelatedSet []*RelatedSet `xml:"relatedset"` // contains filtered or unexported fields }
func (*Record) ContainerField ¶
ContainerField returns all data of container field
func (*Record) RelatedSetFromTable ¶
func (r *Record) RelatedSetFromTable(t string) *RelatedSet
type RelatedSet ¶
Click to show internal directories.
Click to hide internal directories.