MCPcopy Create free account
hub / github.com/apecloud/myduckserver / NewCommentWithMeta

Function NewCommentWithMeta

catalog/comment.go:43–45  ·  view source on GitHub ↗
(text string, meta T)

Source from the content-addressed store, hash-verified

41}
42
43func NewCommentWithMeta[T any](text string, meta T) *Comment[T] {
44 return &Comment[T]{Text: text, Meta: meta}
45}
46
47func (c *Comment[T]) Encode() string {
48 jsonData, err := json.Marshal(c)

Callers 5

createAllTableMethod · 0.85
AddColumnMethod · 0.85
DropColumnMethod · 0.85
ModifyColumnMethod · 0.85
updateExtraTableInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected