MCPcopy
hub / github.com/sqlc-dev/sqlc / convertAlterForeignServerStmt

Function convertAlterForeignServerStmt

internal/engine/postgresql/convert.go:321–331  ·  view source on GitHub ↗
(n *pg.AlterForeignServerStmt)

Source from the content-addressed store, hash-verified

319}
320
321func convertAlterForeignServerStmt(n *pg.AlterForeignServerStmt) *ast.AlterForeignServerStmt {
322 if n == nil {
323 return nil
324 }
325 return &ast.AlterForeignServerStmt{
326 Servername: makeString(n.Servername),
327 Version: makeString(n.Version),
328 Options: convertSlice(n.Options),
329 HasVersion: n.HasVersion,
330 }
331}
332
333func convertAlterFunctionStmt(n *pg.AlterFunctionStmt) *ast.AlterFunctionStmt {
334 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

makeStringFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected