{"modulePath":"github.com/viant/datly","version":"v1.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package readmeta\n\nPackage readmeta carries immutable evidence from actual typed SQL reads. It contains no row values, SQL execution, or binding policy.\n\n## Types\n\n```go\ntype Fields struct {\n\t// contains filtered or unexported fields\n}\n```\nFields records native mapped destination indexes for one actual read schema. Nil means unknown, not all fields. Loaded SQL NULL is still a loaded field.\n\n```go\nfunc NewFields(rowType reflect.Type, indexes [][]int) *Fields\n```\n\n```go\nfunc (f *Fields) Has(name string) bool\n```\nHas resolves a Go selector through native shape, preserving promoted aliases without interpreting SQL tags or comparing scalar zero values.\n\n```go\nfunc (f *Fields) Known() bool\n```\n\n```go\ntype Record struct {\n\t// contains filtered or unexported fields\n}\n```\nRecord describes one final row ordinal and its actual holder attachments. Source tokens remain inside the collector; no reconstructed view identity is exposed from incomplete structural metadata.\n\n```go\nfunc NewRecord(fields *Fields, relations map[string][]*Record) *Record\n```\n\n```go\nfunc (r *Record) Fields() *Fields\n```\n\n```go\nfunc (r *Record) Relation(holder string) ([]*Record, bool)\n```\n\n```go\nfunc (r *Record) RelationRow(holder string, index int) (*Record, error)\n```\nRelationRow returns immutable evidence without copying the sibling collection.\n\n```go\ntype Result struct {\n\t// contains filtered or unexported fields\n}\n```\nResult addresses root rows by final output ordinal. RootHolder is empty for direct outputs; a one-valued output has zero or one root record.\n\n```go\nfunc NewResult(rootHolder string, direct bool, rows []*Record) *Result\n```\n\n```go\nfunc (r *Result) DirectOutput() bool\n```\n\n```go\nfunc (r *Result) Output(holder string) (*Result, error)\n```\nOutput selects immutable evidence for an exact output holder. The existing Row/Rows methods continue to address only the main root view.\n\n```go\nfunc (r *Result) RootHolder() string\n```\n\n```go\nfunc (r *Result) Row(index int) (*Record, error)\n```\nRow returns immutable evidence in constant time without copying all roots.\n\n```go\nfunc (r *Result) Rows() []*Record\n```\n\n```go\nfunc (r *Result) WithOutputs(slots map[string][]*Record) (*Result, error)\n```\nWithOutputs composes completed output slots without mutating either result or caller-owned collections. Slots are canonical Go holder paths, not view aliases. A slot with no rows is known empty; unknown rows contain nil Fields.\n\n","path":"github.com/viant/datly/sql/reader/readmeta","name":"readmeta","synopsis":"Package readmeta carries immutable evidence from actual typed SQL reads.","isRedistributable":true}
