MCPcopy
hub / github.com/jackc/pgx / Create

Method Create

large_objects.go:32–35  ·  view source on GitHub ↗

Create creates a new large object. If oid is zero, the server assigns an unused OID.

(ctx context.Context, oid uint32)

Source from the content-addressed store, hash-verified

30
31// Create creates a new large object. If oid is zero, the server assigns an unused OID.
32func (o *LargeObjects) Create(ctx context.Context, oid uint32) (uint32, error) {
33 err := o.tx.QueryRow(ctx, "select lo_create($1)", oid).Scan(&oid)
34 return oid, err
35}
36
37// Open opens an existing large object with the given mode. ctx will also be used for all operations on the opened large
38// object.

Callers 5

testLargeObjectsFunction · 0.80
writePrivateKeyFunction · 0.80
writeEncryptedPrivateKeyFunction · 0.80
writeCertificateFunction · 0.80

Calls 2

ScanMethod · 0.65
QueryRowMethod · 0.65

Tested by 2

testLargeObjectsFunction · 0.64