Documentation ¶
Index ¶
- Constants
- Variables
- func WithAmp(s string) string
- type DataSource
- type FMAction
- type FMConnector
- type FMError
- type FMFieldOp
- type FMLogicalOp
- type FMQuery
- func (q *FMQuery) QueryString() string
- func (q *FMQuery) WithFieldGroups(fieldGroups ...FMQueryFieldGroup) *FMQuery
- func (q *FMQuery) WithFields(fields ...FMQueryField) *FMQuery
- func (q *FMQuery) WithMaxRecords(max int) *FMQuery
- func (q *FMQuery) WithPostFindScripts(scripts ...string) *FMQuery
- func (q *FMQuery) WithPreFindScripts(scripts ...string) *FMQuery
- func (q *FMQuery) WithPreSortScripts(scripts ...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) WithScriptParams(delimiter string, params ...string) *FMQuery
- func (q *FMQuery) WithSkipRecords(skip int) *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 ¶
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 PreSortScripts []string PreFindScripts []string PostFindScripts []string ScriptParams []string ScriptParamsDelimiter 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) WithMaxRecords ¶
func (*FMQuery) WithPostFindScripts ¶
func (*FMQuery) WithPreFindScripts ¶
func (*FMQuery) WithPreSortScripts ¶
func (*FMQuery) WithRecordId ¶
func (*FMQuery) WithResponseFields ¶
func (*FMQuery) WithResponseLayout ¶
func (*FMQuery) WithScriptParams ¶
func (*FMQuery) WithSkipRecords ¶
func (*FMQuery) WithSortFields ¶
func (q *FMQuery) WithSortFields(sortFields ...FMSortField) *FMQuery
type FMQueryField ¶
func (*FMQueryField) ValueWithOp ¶
func (qf *FMQueryField) ValueWithOp() string
type FMQueryFieldGroup ¶
type FMQueryFieldGroup struct { Op FMLogicalOp Fields []FMQueryField }
func (*FMQueryFieldGroup) SimpleFieldsString ¶
func (fg *FMQueryFieldGroup) SimpleFieldsString() string
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.