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

Function convertReplicaIdentityStmt

internal/engine/postgresql/convert.go:2398–2406  ·  view source on GitHub ↗
(n *pg.ReplicaIdentityStmt)

Source from the content-addressed store, hash-verified

2396}
2397
2398func convertReplicaIdentityStmt(n *pg.ReplicaIdentityStmt) *ast.ReplicaIdentityStmt {
2399 if n == nil {
2400 return nil
2401 }
2402 return &ast.ReplicaIdentityStmt{
2403 IdentityType: makeByte(n.IdentityType),
2404 Name: makeString(n.Name),
2405 }
2406}
2407
2408func convertResTarget(n *pg.ResTarget) *ast.ResTarget {
2409 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

makeByteFunction · 0.85
makeStringFunction · 0.85

Tested by

no test coverage detected