MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / ToSQL

Method ToSQL

pkg/sql/ast/sql.go:1744–1752  ·  view source on GitHub ↗

ToSQL returns the SQL string for a CONNECT BY clause (MariaDB 10.2+).

()

Source from the content-addressed store, hash-verified

1742
1743// ToSQL returns the SQL string for a CONNECT BY clause (MariaDB 10.2+).
1744func (c *ConnectByClause) ToSQL() string {
1745 var b strings.Builder
1746 b.WriteString("CONNECT BY ")
1747 if c.NoCycle {
1748 b.WriteString("NOCYCLE ")
1749 }
1750 b.WriteString(exprSQL(c.Condition))
1751 return b.String()
1752}

Callers 6

SQLMethod · 0.95
SQLMethod · 0.45
tableRefSQLFunction · 0.45

Calls 2

exprSQLFunction · 0.70
StringMethod · 0.45