MCPcopy Create free account
hub / github.com/InferCore/InferCore / nullStringBytes

Function nullStringBytes

internal/requests/postgres.go:135–140  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

133}
134
135func nullStringBytes(b []byte) interface{} {
136 if len(b) == 0 {
137 return nil
138 }
139 return string(b)
140}
141
142func (s *postgresStore) GetRequest(ctx context.Context, requestID string) (RequestRow, error) {
143 row := s.db.QueryRowContext(ctx, `

Callers 1

AppendStepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected