A call can fail because a definition is missing, a document is invalid, or the database refuses a change.
The examples use the people data to show these results.
Use the status and diagnostic fields to identify the failure.
Schema-constrained mutations return code schema_validation and message Schema validation failed..
Their violations list identifies each entity, schema and failed keyword.
Each entry has entityPath and schemaPath arrays, such as [title] and [properties title minLength].
A token matching 0|[1-9][0-9]* within i64 is an integer, including when it names an object key.
Other tokens are strings.
The root is []; the empty-string key is [""]. Path arrays use decoded tokens, so / and ~ need no escaping.
Constraint and actual values retain their data types. Missing required members report missingProperty instead of an actual value.
Clojure uses kebab-case keys, such as :entity-path and :constraint-value.
The error record gives the fields in your language. Statuses gives the failure conditions of each operation.
This record describes a failure with its status and diagnostic. The binding copies the diagnostic before it releases the native owner.
Each status names a class of failure. The table lists codes from the binding. Native diagnostic codes can differ.
Codes: time_out_of_range, invalid_argument, out_of_range, non_finite_number, cycle, unsupported_type, too_large, native_failure, live_children, wrong_kind, not_integral, inexact_number, missing_field, unknown_field, duplicate_field, too_deep, length_mismatch, malformed_tag, ambiguous_field, ambiguous_variant, invalid_value, hook_failed.
Codes: out_of_memory.
Codes: not_found.
Codes: closed.
Codes: abi_version, core_digest, unsupported_runtime, abi_layout, abi_symbol.
Codes: cancelled.
Codes: unlicensed.
The generator captured each result from the native library.
go 151 B
failed , err := db .Backups ().Status ()
if failed != nil {
defer failed .Close ()
}
var result * stardust.Error
if ! errors .As (err , & result ) {
return err
} TRON272 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B BC 756E617661696C
61626C65 txt "unavailable" 017 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 021 6C 656E74697479 txt "entity" 028 00 nil 029 0F 0A 21000000 2800
0000 map leaf, size 10: @21 → @28 033 7C 6D657373616765 txt "message" 03B 14 19 74686520706C
7567696E20697320
6E6F7420656E6162
6C6564 txt "the plugin is not enable…" 056 0F 0A 33000000 3B00
0000 map leaf, size 10: @33 → @3B 060 07 0E 08020000 2900
0000 56000000 map branch, size 14, depth 1, slots 3, 9: @29 → @56 06E 4C 70617468 txt "path" 073 00 nil 074 0F 0A 6E000000 7300
0000 map leaf, size 10: @6E → @73 07E AC 76696F6C617469
6F6E73 txt "violations" 089 00 nil 08A 0F 0A 7E000000 8900
0000 map leaf, size 10: @7E → @89 094 5C 6669656C64 txt "field" 09A 00 nil 09B 0F 0A 94000000 9A00
0000 map leaf, size 10: @94 → @9A 0A5 07 0E 00090000 8A00
0000 9B000000 map branch, size 14, depth 2, slots 8, 11: @8A → @9B 0B3 07 0A 02000000 A500
0000 map branch, size 10, depth 1, slots 1: @A5 0BD 4C 636F6465 txt "code" 0C2 BC 756E617661696C
61626C65 txt "unavailable" 0CE 0F 0A BD000000 C200
0000 map leaf, size 10: @BD → @C2 0D8 6C 6F6666736574 txt "offset" 0DF 00 nil 0E0 0F 0A D8000000 DF00
0000 map leaf, size 10: @D8 → @DF 0EA 07 1E 51620000 1700
0000 60000000 7400
0000 B3000000 CE00
0000 E0000000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @17 → @60 → @74 → @B3 → @CE → @E0
go 246 B
syncOptions , err := stardust .Parse ([]byte (`{maxWait {#dur PT5S}}` ), stardust .DUST )
if err != nil {
return err
}
defer syncOptions .Close ()
err = db .Backups ().Sync (syncOptions )
var result * stardust.Error
if ! errors .As (err , & result ) {
return err
} TRON272 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B BC 756E617661696C
61626C65 txt "unavailable" 017 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 021 6C 656E74697479 txt "entity" 028 00 nil 029 0F 0A 21000000 2800
0000 map leaf, size 10: @21 → @28 033 7C 6D657373616765 txt "message" 03B 14 19 74686520706C
7567696E20697320
6E6F7420656E6162
6C6564 txt "the plugin is not enable…" 056 0F 0A 33000000 3B00
0000 map leaf, size 10: @33 → @3B 060 07 0E 08020000 2900
0000 56000000 map branch, size 14, depth 1, slots 3, 9: @29 → @56 06E 4C 70617468 txt "path" 073 00 nil 074 0F 0A 6E000000 7300
0000 map leaf, size 10: @6E → @73 07E AC 76696F6C617469
6F6E73 txt "violations" 089 00 nil 08A 0F 0A 7E000000 8900
0000 map leaf, size 10: @7E → @89 094 5C 6669656C64 txt "field" 09A 00 nil 09B 0F 0A 94000000 9A00
0000 map leaf, size 10: @94 → @9A 0A5 07 0E 00090000 8A00
0000 9B000000 map branch, size 14, depth 2, slots 8, 11: @8A → @9B 0B3 07 0A 02000000 A500
0000 map branch, size 10, depth 1, slots 1: @A5 0BD 4C 636F6465 txt "code" 0C2 BC 756E617661696C
61626C65 txt "unavailable" 0CE 0F 0A BD000000 C200
0000 map leaf, size 10: @BD → @C2 0D8 6C 6F6666736574 txt "offset" 0DF 00 nil 0E0 0F 0A D8000000 DF00
0000 map leaf, size 10: @D8 → @DF 0EA 07 1E 51620000 1700
0000 60000000 7400
0000 B3000000 CE00
0000 E0000000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @17 → @60 → @74 → @B3 → @CE → @E0
duplicateText holds this document:
TRON24 B
Offset (hex) Bytes (hex) Meaning 00 54 52 4F 4E magic TRON 04 BC 7B3A612031203A
6120327D txt "{:a 1 :a 2}"
go 339 B
source , err := stardust .Parse (duplicateText , stardust .TRON )
if err != nil {
return err
}
defer source .Close ()
root , err := source .Root ()
if err != nil {
return err
}
view , err := source .Read (root )
if err != nil {
return err
}
failed , result := stardust .Parse ([]byte (view .Text ), stardust .EDN )
if failed != nil {
defer failed .Close ()
} TRON300 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B 14 10 696E76616C69
645F617267756D65
6E74 txt "invalid_argument" 01D 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 027 6C 656E74697479 txt "entity" 02E 00 nil 02F 0F 0A 27000000 2E00
0000 map leaf, size 10: @27 → @2E 039 7C 6D657373616765 txt "message" 041 14 27 696E76616C69
642045444E202844
75706C6963617465
5F4B657929206174
206F666673657420
36 txt "invalid EDN (Duplicate_K…" 06A 0F 0A 39000000 4100
0000 map leaf, size 10: @39 → @41 074 07 0E 08020000 2F00
0000 6A000000 map branch, size 14, depth 1, slots 3, 9: @2F → @6A 082 4C 70617468 txt "path" 087 00 nil 088 0F 0A 82000000 8700
0000 map leaf, size 10: @82 → @87 092 AC 76696F6C617469
6F6E73 txt "violations" 09D 00 nil 09E 0F 0A 92000000 9D00
0000 map leaf, size 10: @92 → @9D 0A8 5C 6669656C64 txt "field" 0AE 00 nil 0AF 0F 0A A8000000 AE00
0000 map leaf, size 10: @A8 → @AE 0B9 07 0E 00090000 9E00
0000 AF000000 map branch, size 14, depth 2, slots 8, 11: @9E → @AF 0C7 07 0A 02000000 B900
0000 map branch, size 10, depth 1, slots 1: @B9 0D1 4C 636F6465 txt "code" 0D6 BC 696E76616C6964
5F65646E txt "invalid_edn" 0E2 0F 0A D1000000 D600
0000 map leaf, size 10: @D1 → @D6 0EC 6C 6F6666736574 txt "offset" 0F3 02 06000000000000
00 i64 6 0FC 0F 0A EC000000 F300
0000 map leaf, size 10: @EC → @F3 106 07 1E 51620000 1D00
0000 74000000 8800
0000 C7000000 E200
0000 FC000000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @1D → @74 → @88 → @C7 → @E2 → @FC
patchText holds this document:
TRON46 B
Offset (hex) Bytes (hex) Meaning 00 54 52 4F 4E magic TRON 04 6C 617574686F72 txt "author" 0B 1C 78 txt "x" 0D 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 17 4C 235F7478 txt "#_tx" 1C 0F 0A 17000000 0D00
0000 map leaf, size 10: @17 → @D
go 144 B
patch , err := stardust .Parse (patchText , stardust .TRON )
if err != nil {
return err
}
defer patch .Close ()
_ , result := db .MergePatch (patch , nil ) TRON309 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B 8C 72656A65637465
64 txt "rejected" 014 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 01E 6C 656E74697479 txt "entity" 025 00 nil 026 0F 0A 1E000000 2500
0000 map leaf, size 10: @1E → @25 030 7C 6D657373616765 txt "message" 038 14 37 612070617463
68206F66206F6E6C
7920235F74782069
7320726566757365
643A20235F747820
616E6E6F74617465
7320612077726974
65 txt "a patch of only #_tx is …" 071 0F 0A 30000000 3800
0000 map leaf, size 10: @30 → @38 07B 07 0E 08020000 2600
0000 71000000 map branch, size 14, depth 1, slots 3, 9: @26 → @71 089 4C 70617468 txt "path" 08E 4C 235F7478 txt "#_tx" 093 0F 0A 89000000 8E00
0000 map leaf, size 10: @89 → @8E 09D AC 76696F6C617469
6F6E73 txt "violations" 0A8 00 nil 0A9 0F 0A 9D000000 A800
0000 map leaf, size 10: @9D → @A8 0B3 5C 6669656C64 txt "field" 0B9 00 nil 0BA 0F 0A B3000000 B900
0000 map leaf, size 10: @B3 → @B9 0C4 07 0E 00090000 A900
0000 BA000000 map branch, size 14, depth 2, slots 8, 11: @A9 → @BA 0D2 07 0A 02000000 C400
0000 map branch, size 10, depth 1, slots 1: @C4 0DC 4C 636F6465 txt "code" 0E1 14 10 7472616E7361
6374696F6E5F6F6E
6C79 txt "transaction_only" 0F3 0F 0A DC000000 E100
0000 map leaf, size 10: @DC → @E1 0FD 6C 6F6666736574 txt "offset" 104 00 nil 105 0F 0A FD000000 0401
0000 map leaf, size 10: @FD → @104 10F 07 1E 51620000 1400
0000 7B000000 9300
0000 D2000000 F300
0000 05010000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @14 → @7B → @93 → @D2 → @F3 → @105
futureText holds this document:
TRON145 B
Offset (hex) Bytes (hex) Meaning 00 54 52 4F 4E magic TRON 04 1C 78 txt "x" 06 02 01000000000000
00 i64 1 0F 0F 0A 04000000 0600
0000 map leaf, size 10: @4 → @6 19 4C 23757463 txt "#utc" 1E 14 14 323230302D30
312D30315430303A
30303A30305A txt "2200-01-01T00:00:00Z" 34 0F 0A 19000000 1E00
0000 map leaf, size 10: @19 → @1E 3E 14 14 737461726475
73742F636F6D6D69
747465644174 txt "stardust/committedAt" 54 0F 0A 3E000000 3400
0000 map leaf, size 10: @3E → @34 5E 4C 235F7478 txt "#_tx" 63 0F 0A 5E000000 5400
0000 map leaf, size 10: @5E → @54 6D 3C 235F64 txt "#_d" 71 0F 0A 6D000000 0F00
0000 map leaf, size 10: @6D → @F 7B 07 0E 08010000 6300
0000 71000000 map branch, size 14, depth 0 (root), slots 3, 8: @63 → @71
patchText holds this document:
TRON145 B
Offset (hex) Bytes (hex) Meaning 00 54 52 4F 4E magic TRON 04 1C 78 txt "x" 06 02 02000000000000
00 i64 2 0F 0F 0A 04000000 0600
0000 map leaf, size 10: @4 → @6 19 4C 23757463 txt "#utc" 1E 14 14 323230302D30
312D30315430303A
30303A30305A txt "2200-01-01T00:00:00Z" 34 0F 0A 19000000 1E00
0000 map leaf, size 10: @19 → @1E 3E 14 14 737461726475
73742F636F6D6D69
747465644174 txt "stardust/committedAt" 54 0F 0A 3E000000 3400
0000 map leaf, size 10: @3E → @34 5E 4C 235F7478 txt "#_tx" 63 0F 0A 5E000000 5400
0000 map leaf, size 10: @5E → @54 6D 3C 235F65 txt "#_e" 71 0F 0A 6D000000 0F00
0000 map leaf, size 10: @6D → @F 7B 07 0E 08010000 6300
0000 71000000 map branch, size 14, depth 0 (root), slots 3, 8: @63 → @71
go 322 B
future , err := stardust .Parse (futureText , stardust .TRON )
if err != nil {
return err
}
defer future .Close ()
if _ , err := db .MergePatch (future , nil ); err != nil {
return err
}
patch , err := stardust .Parse (patchText , stardust .TRON )
if err != nil {
return err
}
defer patch .Close ()
_ , result := db .MergePatch (patch , nil ) TRON336 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B 14 13 696E76616C69
645F636F6D6D6974
5F74696D65 txt "invalid_commit_time" 020 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 02A 6C 656E74697479 txt "entity" 031 00 nil 032 0F 0A 2A000000 3100
0000 map leaf, size 10: @2A → @31 03C 7C 6D657373616765 txt "message" 044 14 47 737461726475
73742F636F6D6D69
747465644174206D
7573742062652073
74726963746C7920
6E65776572207468
616E20746865206C
617465737420636F
6D6D69742074696D
65 txt "stardust/committedAt mus…" 08D 0F 0A 3C000000 4400
0000 map leaf, size 10: @3C → @44 097 07 0E 08020000 3200
0000 8D000000 map branch, size 14, depth 1, slots 3, 9: @32 → @8D 0A5 4C 70617468 txt "path" 0AA 00 nil 0AB 0F 0A A5000000 AA00
0000 map leaf, size 10: @A5 → @AA 0B5 AC 76696F6C617469
6F6E73 txt "violations" 0C0 00 nil 0C1 0F 0A B5000000 C000
0000 map leaf, size 10: @B5 → @C0 0CB 5C 6669656C64 txt "field" 0D1 00 nil 0D2 0F 0A CB000000 D100
0000 map leaf, size 10: @CB → @D1 0DC 07 0E 00090000 C100
0000 D2000000 map branch, size 14, depth 2, slots 8, 11: @C1 → @D2 0EA 07 0A 02000000 DC00
0000 map branch, size 10, depth 1, slots 1: @DC 0F4 4C 636F6465 txt "code" 0F9 14 13 696E76616C69
645F636F6D6D6974
5F74696D65 txt "invalid_commit_time" 10E 0F 0A F4000000 F900
0000 map leaf, size 10: @F4 → @F9 118 6C 6F6666736574 txt "offset" 11F 00 nil 120 0F 0A 18010000 1F01
0000 map leaf, size 10: @118 → @11F 12A 07 1E 51620000 2000
0000 97000000 AB00
0000 EA000000 0E01
0000 20010000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @20 → @97 → @AB → @EA → @10E → @120
queryText holds this document:
TRON43 B
Offset (hex) Bytes (hex) Meaning 00 54 52 4F 4E magic TRON 04 2C 3F78 txt "?x" 07 0E 0D 00 0100 010000
00 04000000 array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @4 14 4C 66696E64 txt "find" 19 0F 0A 14000000 0700
0000 map leaf, size 10: @14 → @7
go 194 B
definition , err := stardust .Parse (queryText , stardust .TRON )
if err != nil {
return err
}
defer definition .Close ()
query , result := db .Query (definition )
if query != nil {
defer query .Close ()
} TRON277 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B 14 12 696E76616C69
645F646566696E69
74696F6E txt "invalid_definition" 01F 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 029 6C 656E74697479 txt "entity" 030 00 nil 031 0F 0A 29000000 3000
0000 map leaf, size 10: @29 → @30 03B 7C 6D657373616765 txt "message" 043 14 10 556E626F756E
645F566172696162
6C65 txt "Unbound_Variable" 055 0F 0A 3B000000 4300
0000 map leaf, size 10: @3B → @43 05F 07 0E 08020000 3100
0000 55000000 map branch, size 14, depth 1, slots 3, 9: @31 → @55 06D 4C 70617468 txt "path" 072 00 nil 073 0F 0A 6D000000 7200
0000 map leaf, size 10: @6D → @72 07D AC 76696F6C617469
6F6E73 txt "violations" 088 00 nil 089 0F 0A 7D000000 8800
0000 map leaf, size 10: @7D → @88 093 5C 6669656C64 txt "field" 099 00 nil 09A 0F 0A 93000000 9900
0000 map leaf, size 10: @93 → @99 0A4 07 0E 00090000 8900
0000 9A000000 map branch, size 14, depth 2, slots 8, 11: @89 → @9A 0B2 07 0A 02000000 A400
0000 map branch, size 10, depth 1, slots 1: @A4 0BC 4C 636F6465 txt "code" 0C1 14 10 756E626F756E
645F766172696162
6C65 txt "unbound_variable" 0D3 0F 0A BC000000 C100
0000 map leaf, size 10: @BC → @C1 0DD 6C 6F6666736574 txt "offset" 0E4 00 nil 0E5 0F 0A DD000000 E400
0000 map leaf, size 10: @DD → @E4 0EF 07 1E 51620000 1F00
0000 5F000000 7300
0000 B2000000 D300
0000 E5000000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @1F → @5F → @73 → @B2 → @D3 → @E5
go 88 B
query , result := db .QueryPath ("people/missing" )
if query != nil {
defer query .Close ()
} TRON283 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B 9C 6E6F745F666F75
6E64 txt "not_found" 015 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 01F 6C 656E74697479 txt "entity" 026 00 nil 027 0F 0A 1F000000 2600
0000 map leaf, size 10: @1F → @26 031 7C 6D657373616765 txt "message" 039 14 1A 6E6F20646566
696E6974696F6E20
6174207468697320
70617468 txt "no definition at this pa…" 055 0F 0A 31000000 3900
0000 map leaf, size 10: @31 → @39 05F 07 0E 08020000 2700
0000 55000000 map branch, size 14, depth 1, slots 3, 9: @27 → @55 06D 4C 70617468 txt "path" 072 EC 70656F706C652F
6D697373696E67 txt "people/missing" 081 0F 0A 6D000000 7200
0000 map leaf, size 10: @6D → @72 08B AC 76696F6C617469
6F6E73 txt "violations" 096 00 nil 097 0F 0A 8B000000 9600
0000 map leaf, size 10: @8B → @96 0A1 5C 6669656C64 txt "field" 0A7 00 nil 0A8 0F 0A A1000000 A700
0000 map leaf, size 10: @A1 → @A7 0B2 07 0E 00090000 9700
0000 A8000000 map branch, size 14, depth 2, slots 8, 11: @97 → @A8 0C0 07 0A 02000000 B200
0000 map branch, size 10, depth 1, slots 1: @B2 0CA 4C 636F6465 txt "code" 0CF 9C 6E6F745F666F75
6E64 txt "not_found" 0D9 0F 0A CA000000 CF00
0000 map leaf, size 10: @CA → @CF 0E3 6C 6F6666736574 txt "offset" 0EA 00 nil 0EB 0F 0A E3000000 EA00
0000 map leaf, size 10: @E3 → @EA 0F5 07 1E 51620000 1500
0000 5F000000 8100
0000 C0000000 D900
0000 EB000000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @15 → @5F → @81 → @C0 → @D9 → @EB
malformedText holds these bytes:
text 1 B
] go 105 B
failed , result := stardust .Parse (malformedText , stardust .DUST )
if failed != nil {
defer failed .Close ()
} TRON288 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B 14 10 696E76616C69
645F617267756D65
6E74 txt "invalid_argument" 01D 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 027 6C 656E74697479 txt "entity" 02E 00 nil 02F 0F 0A 27000000 2E00
0000 map leaf, size 10: @27 → @2E 039 7C 6D657373616765 txt "message" 041 14 1A 496E76616C69
645F53796E746178
206174206F666673
65742030 txt "Invalid_Syntax at offset…" 05D 0F 0A 39000000 4100
0000 map leaf, size 10: @39 → @41 067 07 0E 08020000 2F00
0000 5D000000 map branch, size 14, depth 1, slots 3, 9: @2F → @5D 075 4C 70617468 txt "path" 07A 00 nil 07B 0F 0A 75000000 7A00
0000 map leaf, size 10: @75 → @7A 085 AC 76696F6C617469
6F6E73 txt "violations" 090 00 nil 091 0F 0A 85000000 9000
0000 map leaf, size 10: @85 → @90 09B 5C 6669656C64 txt "field" 0A1 00 nil 0A2 0F 0A 9B000000 A100
0000 map leaf, size 10: @9B → @A1 0AC 07 0E 00090000 9100
0000 A2000000 map branch, size 14, depth 2, slots 8, 11: @91 → @A2 0BA 07 0A 02000000 AC00
0000 map branch, size 10, depth 1, slots 1: @AC 0C4 4C 636F6465 txt "code" 0C9 CC 696E76616C6964
5F64757374 txt "invalid_dust" 0D6 0F 0A C4000000 C900
0000 map leaf, size 10: @C4 → @C9 0E0 6C 6F6666736574 txt "offset" 0E7 02 00000000000000
00 i64 0 0F0 0F 0A E0000000 E700
0000 map leaf, size 10: @E0 → @E7 0FA 07 1E 51620000 1D00
0000 67000000 7B00
0000 BA000000 D600
0000 F0000000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @1D → @67 → @7B → @BA → @D6 → @F0
malformedText holds these bytes:
text 1 B
[ go 174 B
failed , err := stardust .Parse (malformedText , stardust .DUST )
if failed != nil {
defer failed .Close ()
}
var result * stardust.Error
if ! errors .As (err , & result ) {
return err
} TRON288 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B 14 10 696E76616C69
645F617267756D65
6E74 txt "invalid_argument" 01D 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 027 6C 656E74697479 txt "entity" 02E 00 nil 02F 0F 0A 27000000 2E00
0000 map leaf, size 10: @27 → @2E 039 7C 6D657373616765 txt "message" 041 14 1A 556E65787065
637465645F456E64
206174206F666673
65742032 txt "Unexpected_End at offset…" 05D 0F 0A 39000000 4100
0000 map leaf, size 10: @39 → @41 067 07 0E 08020000 2F00
0000 5D000000 map branch, size 14, depth 1, slots 3, 9: @2F → @5D 075 4C 70617468 txt "path" 07A 00 nil 07B 0F 0A 75000000 7A00
0000 map leaf, size 10: @75 → @7A 085 AC 76696F6C617469
6F6E73 txt "violations" 090 00 nil 091 0F 0A 85000000 9000
0000 map leaf, size 10: @85 → @90 09B 5C 6669656C64 txt "field" 0A1 00 nil 0A2 0F 0A 9B000000 A100
0000 map leaf, size 10: @9B → @A1 0AC 07 0E 00090000 9100
0000 A2000000 map branch, size 14, depth 2, slots 8, 11: @91 → @A2 0BA 07 0A 02000000 AC00
0000 map branch, size 10, depth 1, slots 1: @AC 0C4 4C 636F6465 txt "code" 0C9 CC 696E76616C6964
5F64757374 txt "invalid_dust" 0D6 0F 0A C4000000 C900
0000 map leaf, size 10: @C4 → @C9 0E0 6C 6F6666736574 txt "offset" 0E7 02 02000000000000
00 i64 2 0F0 0F 0A E0000000 E700
0000 map leaf, size 10: @E0 → @E7 0FA 07 1E 51620000 1D00
0000 67000000 7B00
0000 BA000000 D600
0000 F0000000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @1D → @67 → @7B → @BA → @D6 → @F0
boundaryText holds this document:
TRON21 B
Offset (hex) Bytes (hex) Meaning 00 54 52 4F 4E magic TRON 04 02 63000000000000
00 i64 99
queryText holds this document:
TRON165 B
Offset (hex) Bytes (hex) Meaning 00 54 52 4F 4E magic TRON 04 5C 3F6E616D65 txt "?name" 0A 0E 0D 00 0100 010000
00 04000000 array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @4 17 2C 3F65 txt "?e" 1A 4C 6E616D65 txt "name" 1F 5C 3F6E616D65 txt "?name" 25 0E 15 00 0700 030000
00 17000000 1A0000
00 1F000000 array leaf, size 21, shift 0, bitmap 0007, count 3 (root): @17 → @1A → @1F 3A 0E 0D 00 0100 010000
00 25000000 array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @25 47 5C 3F6E616D65 txt "?name" 4D 0E 0D 00 0100 010000
00 47000000 array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @47 5A 5C 7768657265 txt "where" 60 0F 0A 5A000000 3A00
0000 map leaf, size 10: @5A → @3A 6A 4C 66696E64 txt "find" 6F 0F 0A 6A000000 0A00
0000 map leaf, size 10: @6A → @A 79 7C 6F726465724279 txt "orderBy" 81 0F 0A 79000000 4D00
0000 map leaf, size 10: @79 → @4D 8B 07 12 2A000000 6000
0000 6F000000 8100
0000 map branch, size 18, depth 0 (root), slots 1, 3, 5: @60 → @6F → @81
go 676 B
definition , err := stardust .Parse (queryText , stardust .TRON )
if err != nil {
return err
}
defer definition .Close ()
query , err := db .Query (definition )
if err != nil {
return err
}
defer query .Close ()
boundary , err := stardust .Parse (boundaryText , stardust .TRON )
if err != nil {
return err
}
defer boundary .Close ()
boundaryRoot , err := boundary .Root ()
if err != nil {
return err
}
nanoseconds , err := boundary .I64 (boundaryRoot )
if err != nil {
return err
}
rows , err := query .Run (nil , stardust.RunOptions {PageSize : 2 , MaxCost : time .Duration (nanoseconds )}, nil )
if rows != nil {
defer rows .Close ()
}
var result * stardust.Error
if ! errors .As (err , & result ) {
return err
} TRON341 B
Offset (hex) Bytes (hex) Meaning 000 54 52 4F 4E magic TRON 004 6C 737461747573 txt "status" 00B 14 10 696E76616C69
645F617267756D65
6E74 txt "invalid_argument" 01D 0F 0A 04000000 0B00
0000 map leaf, size 10: @4 → @B 027 6C 656E74697479 txt "entity" 02E 00 nil 02F 0F 0A 27000000 2E00
0000 map leaf, size 10: @27 → @2E 039 7C 6D657373616765 txt "message" 041 14 55 546865206E75
6D62657220686173
206E6F2065786163
7420666F726D2069
6E20746865207461
7267657420747970
653A206475726174
696F6E2072657175
697265732077686F
6C6520313030206E
73207469636B73 txt "The number has no exact …" 098 0F 0A 39000000 4100
0000 map leaf, size 10: @39 → @41 0A2 07 0E 08020000 2F00
0000 98000000 map branch, size 14, depth 1, slots 3, 9: @2F → @98 0B0 4C 70617468 txt "path" 0B5 00 nil 0B6 0F 0A B0000000 B500
0000 map leaf, size 10: @B0 → @B5 0C0 AC 76696F6C617469
6F6E73 txt "violations" 0CB 00 nil 0CC 0F 0A C0000000 CB00
0000 map leaf, size 10: @C0 → @CB 0D6 5C 6669656C64 txt "field" 0DC 00 nil 0DD 0F 0A D6000000 DC00
0000 map leaf, size 10: @D6 → @DC 0E7 07 0E 00090000 CC00
0000 DD000000 map branch, size 14, depth 2, slots 8, 11: @CC → @DD 0F5 07 0A 02000000 E700
0000 map branch, size 10, depth 1, slots 1: @E7 0FF 4C 636F6465 txt "code" 104 EC 696E6578616374
5F6E756D626572 txt "inexact_number" 113 0F 0A FF000000 0401
0000 map leaf, size 10: @FF → @104 11D 6C 6F6666736574 txt "offset" 124 00 nil 125 0F 0A 1D010000 2401
0000 map leaf, size 10: @11D → @124 12F 07 1E 51620000 1D00
0000 A2000000 B600
0000 F5000000 1301
0000 25010000 map branch, size 30, depth 0 (root), slots 0, 4, 6, 9, 13, 14: @1D → @A2 → @B6 → @F5 → @113 → @125