{"modulePath":"github.com/cloudson/gitql","version":"v1.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parser\n\n## Constants\n\n```go\nconst Time_YMD = \"2006-01-02\"\n```\n\n```go\nconst Time_YMDHIS = \"2006-01-02 15:04:05\"\n```\n\n## Functions\n\n```go\nfunc ExtractDate(date string) *time.Time\n```\n\n```go\nfunc New(source string)\n```\n\n## Types\n\n```go\ntype NodeAdapterBinToConst struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype NodeAnd struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeAnd) Assertion(lvalue string, rvalue string) bool\n```\nAND\n\n```go\nfunc (n *NodeAnd) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeAnd) Operator() uint8\n```\n\n```go\nfunc (n *NodeAnd) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeAnd) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeAnd) SetRightValue(e NodeExpr)\n```\n\n```go\ntype NodeBinOp interface {\n\tLeftValue() NodeExpr\n\tRightValue() NodeExpr\n\tSetLeftValue(NodeExpr)\n\tSetRightValue(NodeExpr)\n}\n```\n\n```go\ntype NodeConst interface {\n\tSetValue(string)\n}\n```\n\n```go\ntype NodeEmpty struct {\n}\n```\n\n```go\nfunc (e *NodeEmpty) Run()\n```\n\n```go\ntype NodeEqual struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeEqual) Assertion(lvalue string, rvalue string) bool\n```\nEQUAL\n\n```go\nfunc (n *NodeEqual) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeEqual) Operator() uint8\n```\n\n```go\nfunc (n *NodeEqual) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeEqual) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeEqual) SetRightValue(e NodeExpr)\n```\n\n```go\ntype NodeExpr interface {\n\tAssertion(lvalue, rvalue string) bool\n\tOperator() uint8\n\tLeftValue() NodeExpr\n\tRightValue() NodeExpr\n\tSetLeftValue(NodeExpr)\n\tSetRightValue(NodeExpr)\n}\n```\n\n```go\ntype NodeGreater struct {\n\tEqual bool\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeGreater) Assertion(lvalue string, rvalue string) bool\n```\nGREATER\n\n```go\nfunc (n *NodeGreater) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeGreater) Operator() uint8\n```\n\n```go\nfunc (n *NodeGreater) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeGreater) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeGreater) SetRightValue(e NodeExpr)\n```\n\n```go\ntype NodeId struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeId) Assertion(lvalue string, rvalue string) bool\n```\nID\n\n```go\nfunc (n *NodeId) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeId) Operator() uint8\n```\n\n```go\nfunc (n *NodeId) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeId) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeId) SetRightValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeId) SetValue(value string)\n```\n\n```go\nfunc (n *NodeId) Value() string\n```\n\n```go\ntype NodeIn struct {\n\tNot bool\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeIn) Assertion(lvalue string, rvalue string) bool\n```\n\n```go\nfunc (n *NodeIn) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeIn) Operator() uint8\n```\n\n```go\nfunc (n *NodeIn) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeIn) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeIn) SetRightValue(e NodeExpr)\n```\n\n```go\ntype NodeLike struct {\n\tPattern *regexp.Regexp\n\tNot     bool\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeLike) Assertion(lvalue string, rvalue string) bool\n```\nLIKE\n\n```go\nfunc (n *NodeLike) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeLike) Operator() uint8\n```\n\n```go\nfunc (n *NodeLike) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeLike) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeLike) SetRightValue(e NodeExpr)\n```\n\n```go\ntype NodeLiteral struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeLiteral) Assertion(lvalue string, rvalue string) bool\n```\nLITERAL\n\n```go\nfunc (n *NodeLiteral) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeLiteral) Operator() uint8\n```\n\n```go\nfunc (n *NodeLiteral) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeLiteral) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeLiteral) SetRightValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeLiteral) SetValue(value string)\n```\n\n```go\nfunc (n *NodeLiteral) Value() string\n```\n\n```go\ntype NodeMain interface {\n\tRun()\n}\n```\n\n```go\ntype NodeNotEqual struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeNotEqual) Assertion(lvalue string, rvalue string) bool\n```\nNOT EQUAL\n\n```go\nfunc (n *NodeNotEqual) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeNotEqual) Operator() uint8\n```\n\n```go\nfunc (n *NodeNotEqual) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeNotEqual) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeNotEqual) SetRightValue(e NodeExpr)\n```\n\n```go\ntype NodeNumber struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeNumber) Assertion(lvalue string, rvalue string) bool\n```\nNUMBER\n\n```go\nfunc (n *NodeNumber) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeNumber) Operator() uint8\n```\n\n```go\nfunc (n *NodeNumber) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeNumber) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeNumber) SetRightValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeNumber) SetValue(value string)\n```\n\n```go\nfunc (n *NodeNumber) Value() float64\n```\n\n```go\ntype NodeOr struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeOr) Assertion(lvalue string, rvalue string) bool\n```\nOR\n\n```go\nfunc (n *NodeOr) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeOr) Operator() uint8\n```\n\n```go\nfunc (n *NodeOr) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeOr) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeOr) SetRightValue(e NodeExpr)\n```\n\n```go\ntype NodeOrder struct {\n\tField string\n\tAsc   bool\n}\n```\n\n```go\ntype NodeProgram struct {\n\tChild NodeMain\n\tPath  *string\n}\n```\n\n```go\nfunc AST() (*NodeProgram, error)\n```\n\n```go\ntype NodeSelect struct {\n\tWildCard bool\n\tCount    bool\n\tFields   []string\n\tTables   []string\n\tWhere    NodeExpr\n\tOrder    *NodeOrder\n\tLimit    int\n}\n```\n\n```go\nfunc (s *NodeSelect) Run()\n```\n\n```go\ntype NodeSmaller struct {\n\tEqual bool\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *NodeSmaller) Assertion(lvalue string, rvalue string) bool\n```\nSMALLER\n\n```go\nfunc (n *NodeSmaller) LeftValue() NodeExpr\n```\n\n```go\nfunc (n *NodeSmaller) Operator() uint8\n```\n\n```go\nfunc (n *NodeSmaller) RightValue() NodeExpr\n```\n\n```go\nfunc (n *NodeSmaller) SetLeftValue(e NodeExpr)\n```\n\n```go\nfunc (n *NodeSmaller) SetRightValue(e NodeExpr)\n```\n\n```go\ntype SyntaxError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e *SyntaxError) Error() string\n```\n\n","path":"github.com/cloudson/gitql/parser","name":"parser","synopsis":"","isRedistributable":true}
