MCPcopy Create free account
hub / github.com/araddon/qlbridge / Copy

Method Copy

rel/sql.go:830–845  ·  view source on GitHub ↗

Copy - deep copy, shared nothing

()

Source from the content-addressed store, hash-verified

828
829// Copy - deep copy, shared nothing
830func (m *Column) Copy() *Column {
831 return &Column{
832 sourceQuoteByte: m.sourceQuoteByte,
833 asQuoteByte: m.asQuoteByte,
834 originalAs: m.originalAs,
835 ParentIndex: m.ParentIndex,
836 Index: m.Index,
837 SourceField: m.SourceField,
838 As: m.right,
839 Comment: m.Comment,
840 Order: m.Order,
841 Star: m.Star,
842 Expr: m.Expr,
843 Guard: m.Guard,
844 }
845}
846func (m *Column) ToPB() *ColumnPb {
847 n := ColumnPb{}
848 n.SourceQuote = []byte{m.sourceQuoteByte}

Callers 2

CopyRewriteMethod · 0.95
RewriteSqlSourceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected