Database
A database stores entities and their transactions.
Documents and expression programs can operate without a database.
The example opens a database, lists its included plugins, and closes it.
The plugins option selects the plugins that the database enables. The reactors plugin runs live mutations, and the history plugin purges old history.
License checks
Opening a database checks the active license, its optional expiry, and permissions for the enabled plugins. An open database and its derived handles keep working after expiry or license replacement. See Core activation.
Example
Open a database and retain an independent native document
opened, err := stardust.Open(databasePath, stardust.Options{})
if err != nil {
return err
}
// Closing the database leaves the plugin document valid.
result, err := stardust.Plugins()
opened.Close()
if err != nil {
return err
}
defer result.Close()| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 000 | 54 52 4F 4E | magic TRON |
| 004 | 7C 6261636B757073 | txt "backups" |
| 00C | 0E 0D 00 0100 010000 00 04000000 | array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @4 |
| 019 | 7C 76657273696F6E | txt "version" |
| 021 | 1C 31 | txt "1" |
| 023 | 0F 0A 19000000 2100 0000 | map leaf, size 10: @19 → @21 |
| 02D | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 03B | 09 | bit true |
| 03C | 0F 0A 2D000000 3B00 0000 | map leaf, size 10: @2D → @3B |
| 046 | 07 0E 00810000 2300 0000 3C000000 | map branch, size 14, depth 1, slots 8, 15: @23 → @3C |
| 054 | FC 77696C6C4E6F74 576F726B57697468 | txt "willNotWorkWith" |
| 064 | 0F 0A 54000000 0C00 0000 | map leaf, size 10: @54 → @C |
| 06E | 4C 6E616D65 | txt "name" |
| 073 | 7C 686973746F7279 | txt "history" |
| 07B | 0F 0A 6E000000 7300 0000 | map leaf, size 10: @6E → @73 |
| 085 | BC 64657363726970 74696F6E | txt "description" |
| 091 | 14 49 486973746F72 7920726574656E74 696F6E3A20707572 67657320656E7469 747920686973746F 7279206279206561 6368207374617264 7573742F68697374 6F72792073657474 696E67 | txt "History retention: purge…" |
| 0DC | 0F 0A 85000000 9100 0000 | map leaf, size 10: @85 → @91 |
| 0E6 | 07 0E 88000000 7B00 0000 DC000000 | map branch, size 14, depth 2, slots 3, 7: @7B → @DC |
| 0F4 | 07 0A 02000000 E600 0000 | map branch, size 10, depth 1, slots 1: @E6 |
| 0FE | 07 12 08C00000 4600 0000 64000000 F400 0000 | map branch, size 18, depth 0 (root), slots 3, 14, 15: @46 → @64 → @F4 |
| 110 | 7C 76657273696F6E | txt "version" |
| 118 | 1C 31 | txt "1" |
| 11A | 0F 0A 10010000 1801 0000 | map leaf, size 10: @110 → @118 |
| 124 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 132 | 09 | bit true |
| 133 | 0F 0A 24010000 3201 0000 | map leaf, size 10: @124 → @132 |
| 13D | 07 0E 00810000 1A01 0000 33010000 | map branch, size 14, depth 1, slots 8, 15: @11A → @133 |
| 14B | 4C 6E616D65 | txt "name" |
| 150 | 14 14 616461707469 7665517565727950 6C616E6E6572 | txt "adaptiveQueryPlanner" |
| 166 | 0F 0A 4B010000 5001 0000 | map leaf, size 10: @14B → @150 |
| 170 | BC 64657363726970 74696F6E | txt "description" |
Show all 141 nodes
| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 17C | 14 4E 416461707469 7665206A6F696E20 6F72646572733A20 6C6561726E732066 726F6D2072756E73 20616E642073746F 7265732074686520 706C616E73207468 61742070726F7665 6420626574746572 | txt "Adaptive join orders: le…" |
| 1CC | 0F 0A 70010000 7C01 0000 | map leaf, size 10: @170 → @17C |
| 1D6 | 07 0E 88000000 6601 0000 CC010000 | map branch, size 14, depth 2, slots 3, 7: @166 → @1CC |
| 1E4 | 07 0A 02000000 D601 0000 | map branch, size 10, depth 1, slots 1: @1D6 |
| 1EE | 07 0E 08800000 3D01 0000 E4010000 | map branch, size 14, depth 0 (root), slots 3, 15: @13D → @1E4 |
| 1FC | 7C 76657273696F6E | txt "version" |
| 204 | 1C 31 | txt "1" |
| 206 | 0F 0A FC010000 0402 0000 | map leaf, size 10: @1FC → @204 |
| 210 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 21E | 09 | bit true |
| 21F | 0F 0A 10020000 1E02 0000 | map leaf, size 10: @210 → @21E |
| 229 | 07 0E 00810000 0602 0000 1F020000 | map branch, size 14, depth 1, slots 8, 15: @206 → @21F |
| 237 | 4C 6E616D65 | txt "name" |
| 23C | 7C 6F626A65637473 | txt "objects" |
| 244 | 0F 0A 37020000 3C02 0000 | map leaf, size 10: @237 → @23C |
| 24E | BC 64657363726970 74696F6E | txt "description" |
| 25A | 14 47 4F626A656374 2073746F72653A20 636F6E74656E742D 6164647265737365 64207061796C6F61 647320696E206E61 6D65642066696C65 7320616E64206469 726563746F726965 73 | txt "Object store: content-ad…" |
| 2A3 | 0F 0A 4E020000 5A02 0000 | map leaf, size 10: @24E → @25A |
| 2AD | 07 0E 88000000 4402 0000 A3020000 | map branch, size 14, depth 2, slots 3, 7: @244 → @2A3 |
| 2BB | 07 0A 02000000 AD02 0000 | map branch, size 10, depth 1, slots 1: @2AD |
| 2C5 | 07 0E 08800000 2902 0000 BB020000 | map branch, size 14, depth 0 (root), slots 3, 15: @229 → @2BB |
| 2D3 | 6C 6576656E7473 | txt "events" |
| 2DA | 0E 0D 00 0100 010000 00 D3020000 | array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @2D3 |
| 2E7 | 7C 76657273696F6E | txt "version" |
| 2EF | 1C 31 | txt "1" |
| 2F1 | 0F 0A E7020000 EF02 0000 | map leaf, size 10: @2E7 → @2EF |
| 2FB | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 309 | 09 | bit true |
| 30A | 0F 0A FB020000 0903 0000 | map leaf, size 10: @2FB → @309 |
| 314 | 07 0E 00810000 F102 0000 0A030000 | map branch, size 14, depth 1, slots 8, 15: @2F1 → @30A |
| 322 | FC 646566696E6974 696F6E5479706573 | txt "definitionTypes" |
| 332 | 0F 0A 22030000 DA02 0000 | map leaf, size 10: @322 → @2DA |
| 33C | 4C 6E616D65 | txt "name" |
| 341 | 6C 6576656E7473 | txt "events" |
| 348 | 0F 0A 3C030000 4103 0000 | map leaf, size 10: @33C → @341 |
| 352 | BC 64657363726970 74696F6E | txt "description" |
| 35E | 14 51 4576656E7420 636F6F7264696E61 74696F6E3A207465 6D706F7261727920 7075626C69736820 616E642073756273 6372696265206D65 7373616765732062 6573696465206475 7261626C65206661 637473 | txt "Event coordination: temp…" |
| 3B1 | 0F 0A 52030000 5E03 0000 | map leaf, size 10: @352 → @35E |
| 3BB | 07 0E 88000000 4803 0000 B1030000 | map branch, size 14, depth 2, slots 3, 7: @348 → @3B1 |
| 3C9 | 07 0A 02000000 BB03 0000 | map branch, size 10, depth 1, slots 1: @3BB |
| 3D3 | 07 12 18800000 1403 0000 32030000 C903 0000 | map branch, size 18, depth 0 (root), slots 3, 4, 15: @314 → @332 → @3C9 |
| 3E5 | AC 626C61636B686F 6C6573 | txt "blackholes" |
| 3F0 | 0E 0D 00 0100 010000 00 E5030000 | array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @3E5 |
| 3FD | 7C 76657273696F6E | txt "version" |
| 405 | 1C 31 | txt "1" |
| 407 | 0F 0A FD030000 0504 0000 | map leaf, size 10: @3FD → @405 |
| 411 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 41F | 09 | bit true |
| 420 | 0F 0A 11040000 1F04 0000 | map leaf, size 10: @411 → @41F |
| 42A | 07 0E 00810000 0704 0000 20040000 | map branch, size 14, depth 1, slots 8, 15: @407 → @420 |
| 438 | FC 646566696E6974 696F6E5479706573 | txt "definitionTypes" |
| 448 | 0F 0A 38040000 F003 0000 | map leaf, size 10: @438 → @3F0 |
| 452 | 4C 6E616D65 | txt "name" |
| 457 | AC 626C61636B686F 6C6573 | txt "blackholes" |
| 462 | 0F 0A 52040000 5704 0000 | map leaf, size 10: @452 → @457 |
| 46C | BC 64657363726970 74696F6E | txt "description" |
| 478 | 14 79 44656C696265 726174652072656D 6F76616C3A20636F 6E6669726D656420 616E642061756469 7465642072657772 697465206F662074 686520686973746F 727920616E642062 61636B757073206F 6620746865206669 656C647320612062 6C61636B686F6C65 20646566696E6974 696F6E2073656C65 637473 | txt "Deliberate removal: conf…" |
| 4F3 | 0F 0A 6C040000 7804 0000 | map leaf, size 10: @46C → @478 |
| 4FD | 07 0E 88000000 6204 0000 F3040000 | map branch, size 14, depth 2, slots 3, 7: @462 → @4F3 |
| 50B | 07 0A 02000000 FD04 0000 | map branch, size 10, depth 1, slots 1: @4FD |
| 515 | 07 12 18800000 2A04 0000 48040000 0B05 0000 | map branch, size 18, depth 0 (root), slots 3, 4, 15: @42A → @448 → @50B |
| 527 | 7C 76657273696F6E | txt "version" |
| 52F | 1C 31 | txt "1" |
| 531 | 0F 0A 27050000 2F05 0000 | map leaf, size 10: @527 → @52F |
| 53B | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 549 | 09 | bit true |
| 54A | 0F 0A 3B050000 4905 0000 | map leaf, size 10: @53B → @549 |
| 554 | 07 0E 00810000 3105 0000 4A050000 | map branch, size 14, depth 1, slots 8, 15: @531 → @54A |
| 562 | 4C 6E616D65 | txt "name" |
| 567 | 8C 72656163746F72 73 | txt "reactors" |
| 570 | 0F 0A 62050000 6705 0000 | map leaf, size 10: @562 → @567 |
| 57A | BC 64657363726970 74696F6E | txt "description" |
| 586 | 14 1F 41746F6D6963 206C697665206D75 746174696F6E2064 657269766174696F 6E | txt "Atomic live mutation der…" |
| 5A7 | 0F 0A 7A050000 8605 0000 | map leaf, size 10: @57A → @586 |
| 5B1 | 07 0E 88000000 7005 0000 A7050000 | map branch, size 14, depth 2, slots 3, 7: @570 → @5A7 |
| 5BF | 07 0A 02000000 B105 0000 | map branch, size 10, depth 1, slots 1: @5B1 |
| 5C9 | 07 0E 08800000 5405 0000 BF050000 | map branch, size 14, depth 0 (root), slots 3, 15: @554 → @5BF |
| 5D7 | 7C 76657273696F6E | txt "version" |
| 5DF | 1C 31 | txt "1" |
| 5E1 | 0F 0A D7050000 DF05 0000 | map leaf, size 10: @5D7 → @5DF |
| 5EB | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 5F9 | 09 | bit true |
| 5FA | 0F 0A EB050000 F905 0000 | map leaf, size 10: @5EB → @5F9 |
| 604 | 07 0E 00810000 E105 0000 FA050000 | map branch, size 14, depth 1, slots 8, 15: @5E1 → @5FA |
| 612 | 4C 6E616D65 | txt "name" |
| 617 | 3C 73646B | txt "sdk" |
| 61B | 0F 0A 12060000 1706 0000 | map leaf, size 10: @612 → @617 |
| 625 | BC 64657363726970 74696F6E | txt "description" |
| 631 | 14 5E 53444B206765 6E65726174696F6E 3A207075626C6973 6865732061207479 706564207061636B 616765206F662074 68652073746F7265 6420646566696E69 74696F6E73207768 696C652074686520 6461746162617365 206973206F70656E | txt "SDK generation: publishe…" |
| 691 | 0F 0A 25060000 3106 0000 | map leaf, size 10: @625 → @631 |
| 69B | 07 0E 88000000 1B06 0000 91060000 | map branch, size 14, depth 2, slots 3, 7: @61B → @691 |
| 6A9 | 07 0A 02000000 9B06 0000 | map branch, size 10, depth 1, slots 1: @69B |
| 6B3 | 07 0E 08800000 0406 0000 A9060000 | map branch, size 14, depth 0 (root), slots 3, 15: @604 → @6A9 |
| 6C1 | 7C 76657273696F6E | txt "version" |
| 6C9 | 1C 31 | txt "1" |
| 6CB | 0F 0A C1060000 C906 0000 | map leaf, size 10: @6C1 → @6C9 |
| 6D5 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 6E3 | 09 | bit true |
| 6E4 | 0F 0A D5060000 E306 0000 | map leaf, size 10: @6D5 → @6E3 |
| 6EE | 07 0E 00810000 CB06 0000 E4060000 | map branch, size 14, depth 1, slots 8, 15: @6CB → @6E4 |
| 6FC | 4C 6E616D65 | txt "name" |
| 701 | 6C 736B696C6C73 | txt "skills" |
| 708 | 0F 0A FC060000 0107 0000 | map leaf, size 10: @6FC → @701 |
| 712 | BC 64657363726970 74696F6E | txt "description" |
| 71E | 14 73 4167656E7420 736B696C6C732067 656E65726174696F 6E3A207075626C69 7368657320736B69 6C6C7320616E6420 7265666572656E63 652066696C657320 666F722074686520 73746F7265642064 6566696E6974696F 6E73207768696C65 2074686520646174 6162617365206973 206F70656E | txt "Agent skills generation:…" |
| 793 | 0F 0A 12070000 1E07 0000 | map leaf, size 10: @712 → @71E |
| 79D | 07 0E 88000000 0807 0000 93070000 | map branch, size 14, depth 2, slots 3, 7: @708 → @793 |
| 7AB | 07 0A 02000000 9D07 0000 | map branch, size 10, depth 1, slots 1: @79D |
| 7B5 | 07 0E 08800000 EE06 0000 AB070000 | map branch, size 14, depth 0 (root), slots 3, 15: @6EE → @7AB |
| 7C3 | 0E 29 00 FF00 080000 00 FE000000 EE0100 00 C5020000 D30300 00 15050000 C90500 00 B3060000 B50700 00 | array leaf, size 41, shift 0, bitmap 00FF, count 8 (root): @FE → @1EE → @2C5 → @3D3 → @515 → @5C9 → @6B3 → @7B5 |
| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 7EC | C3070000 00000000 | root → @7C3; previous: none |
Locking
Opening a database requires the file lock that protects its recorded changes.
The lock_timeout option sets how the call waits for that lock:
lock_timeout | Result |
|---|---|
| Zero | If the lock is unavailable, the call fails immediately. |
| Positive | The call waits up to that duration, rounded up to whole milliseconds. |
| Negative | The call waits without limit. |
When the wait ends without the lock, the call fails with the locked status. The options table gives the default and the type in your language.
Operations
| Operation | Returns | Summary |
|---|---|---|
| Open | database | open(path, options) opens a database. |
| Database.Close | none | Release the database handle. |
Open
func Open(path string, options Options) (*Database, error)Parameters
| Parameter | Type | Ownership | Default | Meaning |
|---|---|---|---|---|
path | string | Value | Required | The database file path. |
options | Options | Value | Required options record. See field defaults | The operation's options record. See its field defaults. |
Errors
| Status | When |
|---|---|
StatusNotFound | the parent directory is missing, or the file is missing and create is false |
StatusLocked | another process holds the lock after lock_timeout |
StatusInvalidArgument | the file is not a database, an option is invalid, selected plugins are incompatible, or a plugin refuses its settings: the error carries the plugin's code (such as unknown_plugin_setting), the plugin's name as its path and the setting at fault as its field (nested settings as dotted member names, ambiguous when a name holds a dot) |
StatusConflict | an enabled plugin finds the database inconsistent with its copies: backups refuse diverging copies with code backup_history_divergent, naming them |
StatusUnavailable | an enabled plugin cannot reach what the open needs: backups refuse with backup_targets_unreachable, backup_target_unreadable or backup_objects_required; filesystem refuses with filesystem_fuse_unavailable or filesystem_mount_failed, naming the mount point; the events plugin is required when the database stores event definitions (plugin_required) |
StatusUnsupported | a selected plugin has no implementation on this platform: the filesystem plugin on Windows |
StatusOutOfMemory | native memory is exhausted |
Examples
Open a database and retain an independent native document
opened, err := stardust.Open(databasePath, stardust.Options{})
if err != nil {
return err
}
// Closing the database leaves the plugin document valid.
result, err := stardust.Plugins()
opened.Close()
if err != nil {
return err
}
defer result.Close()| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 000 | 54 52 4F 4E | magic TRON |
| 004 | 7C 6261636B757073 | txt "backups" |
| 00C | 0E 0D 00 0100 010000 00 04000000 | array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @4 |
| 019 | 7C 76657273696F6E | txt "version" |
| 021 | 1C 31 | txt "1" |
| 023 | 0F 0A 19000000 2100 0000 | map leaf, size 10: @19 → @21 |
| 02D | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 03B | 09 | bit true |
| 03C | 0F 0A 2D000000 3B00 0000 | map leaf, size 10: @2D → @3B |
| 046 | 07 0E 00810000 2300 0000 3C000000 | map branch, size 14, depth 1, slots 8, 15: @23 → @3C |
| 054 | FC 77696C6C4E6F74 576F726B57697468 | txt "willNotWorkWith" |
| 064 | 0F 0A 54000000 0C00 0000 | map leaf, size 10: @54 → @C |
| 06E | 4C 6E616D65 | txt "name" |
| 073 | 7C 686973746F7279 | txt "history" |
| 07B | 0F 0A 6E000000 7300 0000 | map leaf, size 10: @6E → @73 |
| 085 | BC 64657363726970 74696F6E | txt "description" |
| 091 | 14 49 486973746F72 7920726574656E74 696F6E3A20707572 67657320656E7469 747920686973746F 7279206279206561 6368207374617264 7573742F68697374 6F72792073657474 696E67 | txt "History retention: purge…" |
| 0DC | 0F 0A 85000000 9100 0000 | map leaf, size 10: @85 → @91 |
| 0E6 | 07 0E 88000000 7B00 0000 DC000000 | map branch, size 14, depth 2, slots 3, 7: @7B → @DC |
| 0F4 | 07 0A 02000000 E600 0000 | map branch, size 10, depth 1, slots 1: @E6 |
| 0FE | 07 12 08C00000 4600 0000 64000000 F400 0000 | map branch, size 18, depth 0 (root), slots 3, 14, 15: @46 → @64 → @F4 |
| 110 | 7C 76657273696F6E | txt "version" |
| 118 | 1C 31 | txt "1" |
| 11A | 0F 0A 10010000 1801 0000 | map leaf, size 10: @110 → @118 |
| 124 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 132 | 09 | bit true |
| 133 | 0F 0A 24010000 3201 0000 | map leaf, size 10: @124 → @132 |
| 13D | 07 0E 00810000 1A01 0000 33010000 | map branch, size 14, depth 1, slots 8, 15: @11A → @133 |
| 14B | 4C 6E616D65 | txt "name" |
| 150 | 14 14 616461707469 7665517565727950 6C616E6E6572 | txt "adaptiveQueryPlanner" |
| 166 | 0F 0A 4B010000 5001 0000 | map leaf, size 10: @14B → @150 |
| 170 | BC 64657363726970 74696F6E | txt "description" |
Show all 141 nodes
| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 17C | 14 4E 416461707469 7665206A6F696E20 6F72646572733A20 6C6561726E732066 726F6D2072756E73 20616E642073746F 7265732074686520 706C616E73207468 61742070726F7665 6420626574746572 | txt "Adaptive join orders: le…" |
| 1CC | 0F 0A 70010000 7C01 0000 | map leaf, size 10: @170 → @17C |
| 1D6 | 07 0E 88000000 6601 0000 CC010000 | map branch, size 14, depth 2, slots 3, 7: @166 → @1CC |
| 1E4 | 07 0A 02000000 D601 0000 | map branch, size 10, depth 1, slots 1: @1D6 |
| 1EE | 07 0E 08800000 3D01 0000 E4010000 | map branch, size 14, depth 0 (root), slots 3, 15: @13D → @1E4 |
| 1FC | 7C 76657273696F6E | txt "version" |
| 204 | 1C 31 | txt "1" |
| 206 | 0F 0A FC010000 0402 0000 | map leaf, size 10: @1FC → @204 |
| 210 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 21E | 09 | bit true |
| 21F | 0F 0A 10020000 1E02 0000 | map leaf, size 10: @210 → @21E |
| 229 | 07 0E 00810000 0602 0000 1F020000 | map branch, size 14, depth 1, slots 8, 15: @206 → @21F |
| 237 | 4C 6E616D65 | txt "name" |
| 23C | 7C 6F626A65637473 | txt "objects" |
| 244 | 0F 0A 37020000 3C02 0000 | map leaf, size 10: @237 → @23C |
| 24E | BC 64657363726970 74696F6E | txt "description" |
| 25A | 14 47 4F626A656374 2073746F72653A20 636F6E74656E742D 6164647265737365 64207061796C6F61 647320696E206E61 6D65642066696C65 7320616E64206469 726563746F726965 73 | txt "Object store: content-ad…" |
| 2A3 | 0F 0A 4E020000 5A02 0000 | map leaf, size 10: @24E → @25A |
| 2AD | 07 0E 88000000 4402 0000 A3020000 | map branch, size 14, depth 2, slots 3, 7: @244 → @2A3 |
| 2BB | 07 0A 02000000 AD02 0000 | map branch, size 10, depth 1, slots 1: @2AD |
| 2C5 | 07 0E 08800000 2902 0000 BB020000 | map branch, size 14, depth 0 (root), slots 3, 15: @229 → @2BB |
| 2D3 | 6C 6576656E7473 | txt "events" |
| 2DA | 0E 0D 00 0100 010000 00 D3020000 | array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @2D3 |
| 2E7 | 7C 76657273696F6E | txt "version" |
| 2EF | 1C 31 | txt "1" |
| 2F1 | 0F 0A E7020000 EF02 0000 | map leaf, size 10: @2E7 → @2EF |
| 2FB | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 309 | 09 | bit true |
| 30A | 0F 0A FB020000 0903 0000 | map leaf, size 10: @2FB → @309 |
| 314 | 07 0E 00810000 F102 0000 0A030000 | map branch, size 14, depth 1, slots 8, 15: @2F1 → @30A |
| 322 | FC 646566696E6974 696F6E5479706573 | txt "definitionTypes" |
| 332 | 0F 0A 22030000 DA02 0000 | map leaf, size 10: @322 → @2DA |
| 33C | 4C 6E616D65 | txt "name" |
| 341 | 6C 6576656E7473 | txt "events" |
| 348 | 0F 0A 3C030000 4103 0000 | map leaf, size 10: @33C → @341 |
| 352 | BC 64657363726970 74696F6E | txt "description" |
| 35E | 14 51 4576656E7420 636F6F7264696E61 74696F6E3A207465 6D706F7261727920 7075626C69736820 616E642073756273 6372696265206D65 7373616765732062 6573696465206475 7261626C65206661 637473 | txt "Event coordination: temp…" |
| 3B1 | 0F 0A 52030000 5E03 0000 | map leaf, size 10: @352 → @35E |
| 3BB | 07 0E 88000000 4803 0000 B1030000 | map branch, size 14, depth 2, slots 3, 7: @348 → @3B1 |
| 3C9 | 07 0A 02000000 BB03 0000 | map branch, size 10, depth 1, slots 1: @3BB |
| 3D3 | 07 12 18800000 1403 0000 32030000 C903 0000 | map branch, size 18, depth 0 (root), slots 3, 4, 15: @314 → @332 → @3C9 |
| 3E5 | AC 626C61636B686F 6C6573 | txt "blackholes" |
| 3F0 | 0E 0D 00 0100 010000 00 E5030000 | array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @3E5 |
| 3FD | 7C 76657273696F6E | txt "version" |
| 405 | 1C 31 | txt "1" |
| 407 | 0F 0A FD030000 0504 0000 | map leaf, size 10: @3FD → @405 |
| 411 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 41F | 09 | bit true |
| 420 | 0F 0A 11040000 1F04 0000 | map leaf, size 10: @411 → @41F |
| 42A | 07 0E 00810000 0704 0000 20040000 | map branch, size 14, depth 1, slots 8, 15: @407 → @420 |
| 438 | FC 646566696E6974 696F6E5479706573 | txt "definitionTypes" |
| 448 | 0F 0A 38040000 F003 0000 | map leaf, size 10: @438 → @3F0 |
| 452 | 4C 6E616D65 | txt "name" |
| 457 | AC 626C61636B686F 6C6573 | txt "blackholes" |
| 462 | 0F 0A 52040000 5704 0000 | map leaf, size 10: @452 → @457 |
| 46C | BC 64657363726970 74696F6E | txt "description" |
| 478 | 14 79 44656C696265 726174652072656D 6F76616C3A20636F 6E6669726D656420 616E642061756469 7465642072657772 697465206F662074 686520686973746F 727920616E642062 61636B757073206F 6620746865206669 656C647320612062 6C61636B686F6C65 20646566696E6974 696F6E2073656C65 637473 | txt "Deliberate removal: conf…" |
| 4F3 | 0F 0A 6C040000 7804 0000 | map leaf, size 10: @46C → @478 |
| 4FD | 07 0E 88000000 6204 0000 F3040000 | map branch, size 14, depth 2, slots 3, 7: @462 → @4F3 |
| 50B | 07 0A 02000000 FD04 0000 | map branch, size 10, depth 1, slots 1: @4FD |
| 515 | 07 12 18800000 2A04 0000 48040000 0B05 0000 | map branch, size 18, depth 0 (root), slots 3, 4, 15: @42A → @448 → @50B |
| 527 | 7C 76657273696F6E | txt "version" |
| 52F | 1C 31 | txt "1" |
| 531 | 0F 0A 27050000 2F05 0000 | map leaf, size 10: @527 → @52F |
| 53B | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 549 | 09 | bit true |
| 54A | 0F 0A 3B050000 4905 0000 | map leaf, size 10: @53B → @549 |
| 554 | 07 0E 00810000 3105 0000 4A050000 | map branch, size 14, depth 1, slots 8, 15: @531 → @54A |
| 562 | 4C 6E616D65 | txt "name" |
| 567 | 8C 72656163746F72 73 | txt "reactors" |
| 570 | 0F 0A 62050000 6705 0000 | map leaf, size 10: @562 → @567 |
| 57A | BC 64657363726970 74696F6E | txt "description" |
| 586 | 14 1F 41746F6D6963 206C697665206D75 746174696F6E2064 657269766174696F 6E | txt "Atomic live mutation der…" |
| 5A7 | 0F 0A 7A050000 8605 0000 | map leaf, size 10: @57A → @586 |
| 5B1 | 07 0E 88000000 7005 0000 A7050000 | map branch, size 14, depth 2, slots 3, 7: @570 → @5A7 |
| 5BF | 07 0A 02000000 B105 0000 | map branch, size 10, depth 1, slots 1: @5B1 |
| 5C9 | 07 0E 08800000 5405 0000 BF050000 | map branch, size 14, depth 0 (root), slots 3, 15: @554 → @5BF |
| 5D7 | 7C 76657273696F6E | txt "version" |
| 5DF | 1C 31 | txt "1" |
| 5E1 | 0F 0A D7050000 DF05 0000 | map leaf, size 10: @5D7 → @5DF |
| 5EB | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 5F9 | 09 | bit true |
| 5FA | 0F 0A EB050000 F905 0000 | map leaf, size 10: @5EB → @5F9 |
| 604 | 07 0E 00810000 E105 0000 FA050000 | map branch, size 14, depth 1, slots 8, 15: @5E1 → @5FA |
| 612 | 4C 6E616D65 | txt "name" |
| 617 | 3C 73646B | txt "sdk" |
| 61B | 0F 0A 12060000 1706 0000 | map leaf, size 10: @612 → @617 |
| 625 | BC 64657363726970 74696F6E | txt "description" |
| 631 | 14 5E 53444B206765 6E65726174696F6E 3A207075626C6973 6865732061207479 706564207061636B 616765206F662074 68652073746F7265 6420646566696E69 74696F6E73207768 696C652074686520 6461746162617365 206973206F70656E | txt "SDK generation: publishe…" |
| 691 | 0F 0A 25060000 3106 0000 | map leaf, size 10: @625 → @631 |
| 69B | 07 0E 88000000 1B06 0000 91060000 | map branch, size 14, depth 2, slots 3, 7: @61B → @691 |
| 6A9 | 07 0A 02000000 9B06 0000 | map branch, size 10, depth 1, slots 1: @69B |
| 6B3 | 07 0E 08800000 0406 0000 A9060000 | map branch, size 14, depth 0 (root), slots 3, 15: @604 → @6A9 |
| 6C1 | 7C 76657273696F6E | txt "version" |
| 6C9 | 1C 31 | txt "1" |
| 6CB | 0F 0A C1060000 C906 0000 | map leaf, size 10: @6C1 → @6C9 |
| 6D5 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 6E3 | 09 | bit true |
| 6E4 | 0F 0A D5060000 E306 0000 | map leaf, size 10: @6D5 → @6E3 |
| 6EE | 07 0E 00810000 CB06 0000 E4060000 | map branch, size 14, depth 1, slots 8, 15: @6CB → @6E4 |
| 6FC | 4C 6E616D65 | txt "name" |
| 701 | 6C 736B696C6C73 | txt "skills" |
| 708 | 0F 0A FC060000 0107 0000 | map leaf, size 10: @6FC → @701 |
| 712 | BC 64657363726970 74696F6E | txt "description" |
| 71E | 14 73 4167656E7420 736B696C6C732067 656E65726174696F 6E3A207075626C69 7368657320736B69 6C6C7320616E6420 7265666572656E63 652066696C657320 666F722074686520 73746F7265642064 6566696E6974696F 6E73207768696C65 2074686520646174 6162617365206973 206F70656E | txt "Agent skills generation:…" |
| 793 | 0F 0A 12070000 1E07 0000 | map leaf, size 10: @712 → @71E |
| 79D | 07 0E 88000000 0807 0000 93070000 | map branch, size 14, depth 2, slots 3, 7: @708 → @793 |
| 7AB | 07 0A 02000000 9D07 0000 | map branch, size 10, depth 1, slots 1: @79D |
| 7B5 | 07 0E 08800000 EE06 0000 AB070000 | map branch, size 14, depth 0 (root), slots 3, 15: @6EE → @7AB |
| 7C3 | 0E 29 00 FF00 080000 00 FE000000 EE0100 00 C5020000 D30300 00 15050000 C90500 00 B3060000 B50700 00 | array leaf, size 41, shift 0, bitmap 00FF, count 8 (root): @FE → @1EE → @2C5 → @3D3 → @515 → @5C9 → @6B3 → @7B5 |
| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 7EC | C3070000 00000000 | root → @7C3; previous: none |
Open with explicit native options
create := true
result := stardust.Options{Create: &create, PageSize: 0}
database, err := stardust.Open(databasePath, result)
if err != nil {
return err
}
defer database.Close()| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 000 | 54 52 4F 4E | magic TRON |
| 004 | 6C 637265617465 | txt "create" |
| 00B | 09 | bit true |
| 00C | 0F 0A 04000000 0B00 0000 | map leaf, size 10: @4 → @B |
| 016 | 14 11 696E69746961 6C5F6D61705F6279 746573 | txt "initial_map_bytes" |
| 029 | 02 00000000000000 00 | i64 0 |
| 032 | 0F 0A 16000000 2900 0000 | map leaf, size 10: @16 → @29 |
| 03C | 7C 706C7567696E73 | txt "plugins" |
| 044 | 00 | nil |
| 045 | 0F 0A 3C000000 4400 0000 | map leaf, size 10: @3C → @44 |
| 04F | 14 13 6D656D6F7279 5F6275646765745F 6279746573 | txt "memory_budget_bytes" |
| 064 | 02 00000000000000 00 | i64 0 |
| 06D | 0F 0A 4F000000 6400 0000 | map leaf, size 10: @4F → @64 |
| 077 | CC 6C6F636B5F7469 6D656F7574 | txt "lock_timeout" |
| 084 | 02 00000000000000 00 | i64 0 |
| 08D | 0F 0A 77000000 8400 0000 | map leaf, size 10: @77 → @84 |
| 097 | 5C 636C656172 | txt "clear" |
| 09D | 01 | bit false |
| 09E | 0F 0A 97000000 9D00 0000 | map leaf, size 10: @97 → @9D |
| 0A8 | AC 70696E5F6D656D 6F7279 | txt "pin_memory" |
| 0B3 | 01 | bit false |
| 0B4 | 0F 0A A8000000 B300 0000 | map leaf, size 10: @A8 → @B3 |
| 0BE | 9C 706167655F7369 7A65 | txt "page_size" |
| 0C8 | 02 00000000000000 00 | i64 0 |
| 0D1 | 0F 0A BE000000 C800 0000 | map leaf, size 10: @BE → @C8 |
| 0DB | CC 636F6D6D69745F 6261746368 | txt "commit_batch" |
| 0E8 | 02 00000000000000 00 | i64 0 |
| 0F1 | 0F 0A DB000000 E800 0000 | map leaf, size 10: @DB → @E8 |
| 0FB | 07 12 00430000 B400 0000 D1000000 F100 0000 | map branch, size 18, depth 1, slots 8, 9, 14: @B4 → @D1 → @F1 |
| 10D | 07 22 193A0000 0C00 0000 32000000 4500 0000 6D000000 8D00 0000 9E000000 FB00 0000 | map branch, size 34, depth 0 (root), slots 0, 3, 4, 9, 11, 12, 13: @C → @32 → @45 → @6D → @8D → @9E → @FB |
| 12F | 0D010000 00000000 | root → @10D; previous: none |
Wait for the database lock without a limit
create := true
result := stardust.Options{Create: &create, PageSize: 0, LockTimeout: -time.Nanosecond}
database, err := stardust.Open(databasePath, result)
if err != nil {
return err
}
defer database.Close()| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 000 | 54 52 4F 4E | magic TRON |
| 004 | 6C 637265617465 | txt "create" |
| 00B | 09 | bit true |
| 00C | 0F 0A 04000000 0B00 0000 | map leaf, size 10: @4 → @B |
| 016 | 14 11 696E69746961 6C5F6D61705F6279 746573 | txt "initial_map_bytes" |
| 029 | 02 00000000000000 00 | i64 0 |
| 032 | 0F 0A 16000000 2900 0000 | map leaf, size 10: @16 → @29 |
| 03C | 7C 706C7567696E73 | txt "plugins" |
| 044 | 00 | nil |
| 045 | 0F 0A 3C000000 4400 0000 | map leaf, size 10: @3C → @44 |
| 04F | 14 13 6D656D6F7279 5F6275646765745F 6279746573 | txt "memory_budget_bytes" |
| 064 | 02 00000000000000 00 | i64 0 |
| 06D | 0F 0A 4F000000 6400 0000 | map leaf, size 10: @4F → @64 |
| 077 | CC 6C6F636B5F7469 6D656F7574 | txt "lock_timeout" |
| 084 | 00 | nil |
| 085 | 0F 0A 77000000 8400 0000 | map leaf, size 10: @77 → @84 |
| 08F | 5C 636C656172 | txt "clear" |
| 095 | 01 | bit false |
| 096 | 0F 0A 8F000000 9500 0000 | map leaf, size 10: @8F → @95 |
| 0A0 | AC 70696E5F6D656D 6F7279 | txt "pin_memory" |
| 0AB | 01 | bit false |
| 0AC | 0F 0A A0000000 AB00 0000 | map leaf, size 10: @A0 → @AB |
| 0B6 | 9C 706167655F7369 7A65 | txt "page_size" |
| 0C0 | 02 00000000000000 00 | i64 0 |
| 0C9 | 0F 0A B6000000 C000 0000 | map leaf, size 10: @B6 → @C0 |
| 0D3 | CC 636F6D6D69745F 6261746368 | txt "commit_batch" |
| 0E0 | 02 00000000000000 00 | i64 0 |
| 0E9 | 0F 0A D3000000 E000 0000 | map leaf, size 10: @D3 → @E0 |
| 0F3 | 07 12 00430000 AC00 0000 C9000000 E900 0000 | map branch, size 18, depth 1, slots 8, 9, 14: @AC → @C9 → @E9 |
| 105 | 07 22 193A0000 0C00 0000 32000000 4500 0000 6D000000 8500 0000 96000000 F300 0000 | map branch, size 34, depth 0 (root), slots 0, 3, 4, 9, 11, 12, 13: @C → @32 → @45 → @6D → @85 → @96 → @F3 |
| 127 | 05010000 00000000 | root → @105; previous: none |
C exports: stardust_db_open, stardust_result_error, stardust_result_release
Database.Close
func (d *Database) Close()Consumes the receiver handle.
Examples
Open a database and retain an independent native document
opened, err := stardust.Open(databasePath, stardust.Options{})
if err != nil {
return err
}
// Closing the database leaves the plugin document valid.
result, err := stardust.Plugins()
opened.Close()
if err != nil {
return err
}
defer result.Close()| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 000 | 54 52 4F 4E | magic TRON |
| 004 | 7C 6261636B757073 | txt "backups" |
| 00C | 0E 0D 00 0100 010000 00 04000000 | array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @4 |
| 019 | 7C 76657273696F6E | txt "version" |
| 021 | 1C 31 | txt "1" |
| 023 | 0F 0A 19000000 2100 0000 | map leaf, size 10: @19 → @21 |
| 02D | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 03B | 09 | bit true |
| 03C | 0F 0A 2D000000 3B00 0000 | map leaf, size 10: @2D → @3B |
| 046 | 07 0E 00810000 2300 0000 3C000000 | map branch, size 14, depth 1, slots 8, 15: @23 → @3C |
| 054 | FC 77696C6C4E6F74 576F726B57697468 | txt "willNotWorkWith" |
| 064 | 0F 0A 54000000 0C00 0000 | map leaf, size 10: @54 → @C |
| 06E | 4C 6E616D65 | txt "name" |
| 073 | 7C 686973746F7279 | txt "history" |
| 07B | 0F 0A 6E000000 7300 0000 | map leaf, size 10: @6E → @73 |
| 085 | BC 64657363726970 74696F6E | txt "description" |
| 091 | 14 49 486973746F72 7920726574656E74 696F6E3A20707572 67657320656E7469 747920686973746F 7279206279206561 6368207374617264 7573742F68697374 6F72792073657474 696E67 | txt "History retention: purge…" |
| 0DC | 0F 0A 85000000 9100 0000 | map leaf, size 10: @85 → @91 |
| 0E6 | 07 0E 88000000 7B00 0000 DC000000 | map branch, size 14, depth 2, slots 3, 7: @7B → @DC |
| 0F4 | 07 0A 02000000 E600 0000 | map branch, size 10, depth 1, slots 1: @E6 |
| 0FE | 07 12 08C00000 4600 0000 64000000 F400 0000 | map branch, size 18, depth 0 (root), slots 3, 14, 15: @46 → @64 → @F4 |
| 110 | 7C 76657273696F6E | txt "version" |
| 118 | 1C 31 | txt "1" |
| 11A | 0F 0A 10010000 1801 0000 | map leaf, size 10: @110 → @118 |
| 124 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 132 | 09 | bit true |
| 133 | 0F 0A 24010000 3201 0000 | map leaf, size 10: @124 → @132 |
| 13D | 07 0E 00810000 1A01 0000 33010000 | map branch, size 14, depth 1, slots 8, 15: @11A → @133 |
| 14B | 4C 6E616D65 | txt "name" |
| 150 | 14 14 616461707469 7665517565727950 6C616E6E6572 | txt "adaptiveQueryPlanner" |
| 166 | 0F 0A 4B010000 5001 0000 | map leaf, size 10: @14B → @150 |
| 170 | BC 64657363726970 74696F6E | txt "description" |
Show all 141 nodes
| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 17C | 14 4E 416461707469 7665206A6F696E20 6F72646572733A20 6C6561726E732066 726F6D2072756E73 20616E642073746F 7265732074686520 706C616E73207468 61742070726F7665 6420626574746572 | txt "Adaptive join orders: le…" |
| 1CC | 0F 0A 70010000 7C01 0000 | map leaf, size 10: @170 → @17C |
| 1D6 | 07 0E 88000000 6601 0000 CC010000 | map branch, size 14, depth 2, slots 3, 7: @166 → @1CC |
| 1E4 | 07 0A 02000000 D601 0000 | map branch, size 10, depth 1, slots 1: @1D6 |
| 1EE | 07 0E 08800000 3D01 0000 E4010000 | map branch, size 14, depth 0 (root), slots 3, 15: @13D → @1E4 |
| 1FC | 7C 76657273696F6E | txt "version" |
| 204 | 1C 31 | txt "1" |
| 206 | 0F 0A FC010000 0402 0000 | map leaf, size 10: @1FC → @204 |
| 210 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 21E | 09 | bit true |
| 21F | 0F 0A 10020000 1E02 0000 | map leaf, size 10: @210 → @21E |
| 229 | 07 0E 00810000 0602 0000 1F020000 | map branch, size 14, depth 1, slots 8, 15: @206 → @21F |
| 237 | 4C 6E616D65 | txt "name" |
| 23C | 7C 6F626A65637473 | txt "objects" |
| 244 | 0F 0A 37020000 3C02 0000 | map leaf, size 10: @237 → @23C |
| 24E | BC 64657363726970 74696F6E | txt "description" |
| 25A | 14 47 4F626A656374 2073746F72653A20 636F6E74656E742D 6164647265737365 64207061796C6F61 647320696E206E61 6D65642066696C65 7320616E64206469 726563746F726965 73 | txt "Object store: content-ad…" |
| 2A3 | 0F 0A 4E020000 5A02 0000 | map leaf, size 10: @24E → @25A |
| 2AD | 07 0E 88000000 4402 0000 A3020000 | map branch, size 14, depth 2, slots 3, 7: @244 → @2A3 |
| 2BB | 07 0A 02000000 AD02 0000 | map branch, size 10, depth 1, slots 1: @2AD |
| 2C5 | 07 0E 08800000 2902 0000 BB020000 | map branch, size 14, depth 0 (root), slots 3, 15: @229 → @2BB |
| 2D3 | 6C 6576656E7473 | txt "events" |
| 2DA | 0E 0D 00 0100 010000 00 D3020000 | array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @2D3 |
| 2E7 | 7C 76657273696F6E | txt "version" |
| 2EF | 1C 31 | txt "1" |
| 2F1 | 0F 0A E7020000 EF02 0000 | map leaf, size 10: @2E7 → @2EF |
| 2FB | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 309 | 09 | bit true |
| 30A | 0F 0A FB020000 0903 0000 | map leaf, size 10: @2FB → @309 |
| 314 | 07 0E 00810000 F102 0000 0A030000 | map branch, size 14, depth 1, slots 8, 15: @2F1 → @30A |
| 322 | FC 646566696E6974 696F6E5479706573 | txt "definitionTypes" |
| 332 | 0F 0A 22030000 DA02 0000 | map leaf, size 10: @322 → @2DA |
| 33C | 4C 6E616D65 | txt "name" |
| 341 | 6C 6576656E7473 | txt "events" |
| 348 | 0F 0A 3C030000 4103 0000 | map leaf, size 10: @33C → @341 |
| 352 | BC 64657363726970 74696F6E | txt "description" |
| 35E | 14 51 4576656E7420 636F6F7264696E61 74696F6E3A207465 6D706F7261727920 7075626C69736820 616E642073756273 6372696265206D65 7373616765732062 6573696465206475 7261626C65206661 637473 | txt "Event coordination: temp…" |
| 3B1 | 0F 0A 52030000 5E03 0000 | map leaf, size 10: @352 → @35E |
| 3BB | 07 0E 88000000 4803 0000 B1030000 | map branch, size 14, depth 2, slots 3, 7: @348 → @3B1 |
| 3C9 | 07 0A 02000000 BB03 0000 | map branch, size 10, depth 1, slots 1: @3BB |
| 3D3 | 07 12 18800000 1403 0000 32030000 C903 0000 | map branch, size 18, depth 0 (root), slots 3, 4, 15: @314 → @332 → @3C9 |
| 3E5 | AC 626C61636B686F 6C6573 | txt "blackholes" |
| 3F0 | 0E 0D 00 0100 010000 00 E5030000 | array leaf, size 13, shift 0, bitmap 0001, count 1 (root): @3E5 |
| 3FD | 7C 76657273696F6E | txt "version" |
| 405 | 1C 31 | txt "1" |
| 407 | 0F 0A FD030000 0504 0000 | map leaf, size 10: @3FD → @405 |
| 411 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 41F | 09 | bit true |
| 420 | 0F 0A 11040000 1F04 0000 | map leaf, size 10: @411 → @41F |
| 42A | 07 0E 00810000 0704 0000 20040000 | map branch, size 14, depth 1, slots 8, 15: @407 → @420 |
| 438 | FC 646566696E6974 696F6E5479706573 | txt "definitionTypes" |
| 448 | 0F 0A 38040000 F003 0000 | map leaf, size 10: @438 → @3F0 |
| 452 | 4C 6E616D65 | txt "name" |
| 457 | AC 626C61636B686F 6C6573 | txt "blackholes" |
| 462 | 0F 0A 52040000 5704 0000 | map leaf, size 10: @452 → @457 |
| 46C | BC 64657363726970 74696F6E | txt "description" |
| 478 | 14 79 44656C696265 726174652072656D 6F76616C3A20636F 6E6669726D656420 616E642061756469 7465642072657772 697465206F662074 686520686973746F 727920616E642062 61636B757073206F 6620746865206669 656C647320612062 6C61636B686F6C65 20646566696E6974 696F6E2073656C65 637473 | txt "Deliberate removal: conf…" |
| 4F3 | 0F 0A 6C040000 7804 0000 | map leaf, size 10: @46C → @478 |
| 4FD | 07 0E 88000000 6204 0000 F3040000 | map branch, size 14, depth 2, slots 3, 7: @462 → @4F3 |
| 50B | 07 0A 02000000 FD04 0000 | map branch, size 10, depth 1, slots 1: @4FD |
| 515 | 07 12 18800000 2A04 0000 48040000 0B05 0000 | map branch, size 18, depth 0 (root), slots 3, 4, 15: @42A → @448 → @50B |
| 527 | 7C 76657273696F6E | txt "version" |
| 52F | 1C 31 | txt "1" |
| 531 | 0F 0A 27050000 2F05 0000 | map leaf, size 10: @527 → @52F |
| 53B | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 549 | 09 | bit true |
| 54A | 0F 0A 3B050000 4905 0000 | map leaf, size 10: @53B → @549 |
| 554 | 07 0E 00810000 3105 0000 4A050000 | map branch, size 14, depth 1, slots 8, 15: @531 → @54A |
| 562 | 4C 6E616D65 | txt "name" |
| 567 | 8C 72656163746F72 73 | txt "reactors" |
| 570 | 0F 0A 62050000 6705 0000 | map leaf, size 10: @562 → @567 |
| 57A | BC 64657363726970 74696F6E | txt "description" |
| 586 | 14 1F 41746F6D6963 206C697665206D75 746174696F6E2064 657269766174696F 6E | txt "Atomic live mutation der…" |
| 5A7 | 0F 0A 7A050000 8605 0000 | map leaf, size 10: @57A → @586 |
| 5B1 | 07 0E 88000000 7005 0000 A7050000 | map branch, size 14, depth 2, slots 3, 7: @570 → @5A7 |
| 5BF | 07 0A 02000000 B105 0000 | map branch, size 10, depth 1, slots 1: @5B1 |
| 5C9 | 07 0E 08800000 5405 0000 BF050000 | map branch, size 14, depth 0 (root), slots 3, 15: @554 → @5BF |
| 5D7 | 7C 76657273696F6E | txt "version" |
| 5DF | 1C 31 | txt "1" |
| 5E1 | 0F 0A D7050000 DF05 0000 | map leaf, size 10: @5D7 → @5DF |
| 5EB | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 5F9 | 09 | bit true |
| 5FA | 0F 0A EB050000 F905 0000 | map leaf, size 10: @5EB → @5F9 |
| 604 | 07 0E 00810000 E105 0000 FA050000 | map branch, size 14, depth 1, slots 8, 15: @5E1 → @5FA |
| 612 | 4C 6E616D65 | txt "name" |
| 617 | 3C 73646B | txt "sdk" |
| 61B | 0F 0A 12060000 1706 0000 | map leaf, size 10: @612 → @617 |
| 625 | BC 64657363726970 74696F6E | txt "description" |
| 631 | 14 5E 53444B206765 6E65726174696F6E 3A207075626C6973 6865732061207479 706564207061636B 616765206F662074 68652073746F7265 6420646566696E69 74696F6E73207768 696C652074686520 6461746162617365 206973206F70656E | txt "SDK generation: publishe…" |
| 691 | 0F 0A 25060000 3106 0000 | map leaf, size 10: @625 → @631 |
| 69B | 07 0E 88000000 1B06 0000 91060000 | map branch, size 14, depth 2, slots 3, 7: @61B → @691 |
| 6A9 | 07 0A 02000000 9B06 0000 | map branch, size 10, depth 1, slots 1: @69B |
| 6B3 | 07 0E 08800000 0406 0000 A9060000 | map branch, size 14, depth 0 (root), slots 3, 15: @604 → @6A9 |
| 6C1 | 7C 76657273696F6E | txt "version" |
| 6C9 | 1C 31 | txt "1" |
| 6CB | 0F 0A C1060000 C906 0000 | map leaf, size 10: @6C1 → @6C9 |
| 6D5 | DC 64617461626173 65486F6F6B73 | txt "databaseHooks" |
| 6E3 | 09 | bit true |
| 6E4 | 0F 0A D5060000 E306 0000 | map leaf, size 10: @6D5 → @6E3 |
| 6EE | 07 0E 00810000 CB06 0000 E4060000 | map branch, size 14, depth 1, slots 8, 15: @6CB → @6E4 |
| 6FC | 4C 6E616D65 | txt "name" |
| 701 | 6C 736B696C6C73 | txt "skills" |
| 708 | 0F 0A FC060000 0107 0000 | map leaf, size 10: @6FC → @701 |
| 712 | BC 64657363726970 74696F6E | txt "description" |
| 71E | 14 73 4167656E7420 736B696C6C732067 656E65726174696F 6E3A207075626C69 7368657320736B69 6C6C7320616E6420 7265666572656E63 652066696C657320 666F722074686520 73746F7265642064 6566696E6974696F 6E73207768696C65 2074686520646174 6162617365206973 206F70656E | txt "Agent skills generation:…" |
| 793 | 0F 0A 12070000 1E07 0000 | map leaf, size 10: @712 → @71E |
| 79D | 07 0E 88000000 0807 0000 93070000 | map branch, size 14, depth 2, slots 3, 7: @708 → @793 |
| 7AB | 07 0A 02000000 9D07 0000 | map branch, size 10, depth 1, slots 1: @79D |
| 7B5 | 07 0E 08800000 EE06 0000 AB070000 | map branch, size 14, depth 0 (root), slots 3, 15: @6EE → @7AB |
| 7C3 | 0E 29 00 FF00 080000 00 FE000000 EE0100 00 C5020000 D30300 00 15050000 C90500 00 B3060000 B50700 00 | array leaf, size 41, shift 0, bitmap 00FF, count 8 (root): @FE → @1EE → @2C5 → @3D3 → @515 → @5C9 → @6B3 → @7B5 |
| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 7EC | C3070000 00000000 | root → @7C3; previous: none |
C exports: stardust_db_close, stardust_db_retain, stardust_db_release
options
This record supplies options for open. The zero value selects every default.
Create
Creates a missing file. false refuses it with not_found.
- Type:
*bool - Default: true
- Absent: nil
Clear
Discards all existing database contents after acquiring the exclusive file lock. Use true only to start an empty database.
- Type:
bool - Default: false
PinMemory
Locks the mapped database pages in RAM to prevent paging to disk. This also applies when the mapping grows. Opening or growing the mapping fails if the operating system refuses the memory lock.
- Type:
bool - Default: false
PageSize
Storage page size in bytes for a new database file. 0 selects the operating system page size. A negative value causes invalid_argument.
- Type:
int64 - Unit: Bytes
LockTimeout
Waits for the lock of another process. 0 fails at once. A positive wait rounds up to whole milliseconds.
- Type:
time.Duration - Unit: Host duration (100 ns ticks at the ABI)
- Range: Tick range
- Default: 0
- Absent: A negative duration
InitialMapBytes
Zero selects the library default.
- Type:
int64 - Unit: Bytes
CommitBatch
Batch window for background commits nobody waits on. Write calls return once durable and never wait for it; concurrent writes share a sync regardless. Zero selects the library default and a negative duration causes invalid_argument.
- Type:
time.Duration - Unit: Host duration (100 ns ticks at the ABI)
- Range: Tick range
Plugins
The plugins to enable, by name, each mapped to its load settings ({} for its defaults). Only named plugins are enabled.
- Type:
map[string]any - Absent: nil
MemoryBudgetBytes
The most bytes of working memory the database's queries, caches and initial bulk build hold together. Zero selects an eighth of physical memory, at least 256 MiB. Query ordering, distinct and grouping use temporary sorted runs when records do not fit in memory. Collected aggregate inputs and windows read bounded runs. A minimum workspace, indivisible value or requested output document that cannot fit reports out_of_memory. Small pages let callers read large results. Returned documents use caller-owned memory after transfer. Pages that the caller keeps and binding-side all_pages collections are outside this budget. An initial bulk build reports out_of_memory if a patch or its minimum workspace cannot fit, and publishes nothing. Operating-system file cache and the process baseline are outside this budget. A negative value causes invalid_argument.
- Type:
int64 - Unit: Bytes