MCPcopy Create free account
hub / github.com/dolthub/doltgresql / jsonConvertStatements

Function jsonConvertStatements

server/plpgsql/json_convert.go:130–140  ·  view source on GitHub ↗

jsonConvertStatements converts a collection of statements in JSON form to their output form.

(stmts []statement)

Source from the content-addressed store, hash-verified

128
129// jsonConvertStatements converts a collection of statements in JSON form to their output form.
130func jsonConvertStatements(stmts []statement) ([]Statement, error) {
131 newStmts := make([]Statement, len(stmts))
132 for i, stmt := range stmts {
133 var err error
134 newStmts[i], err = jsonConvertStatement(stmt)
135 if err != nil {
136 return nil, err
137 }
138 }
139 return newStmts, nil
140}

Callers 8

jsonConvertFunction · 0.85
jsonConvertStatementFunction · 0.85
ConvertMethod · 0.85
ConvertMethod · 0.85
ConvertMethod · 0.85
ConvertMethod · 0.85
ConvertMethod · 0.85
ConvertMethod · 0.85

Calls 1

jsonConvertStatementFunction · 0.85

Tested by

no test coverage detected