Changes

Jump to navigation Jump to search
150 bytes added ,  18:46, 18 July 2022
no edit summary
|}
==db:retrieveget-binary== {{Announce|Updated with Version 10}}: renamed (before: {{Code|db:retrieve}}).
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|db:retrieveget-binary|$db as xs:string, $path as xs:string|xs:base64Binary}}
|-
| '''Summary'''
| '''Examples'''
|
* {{Code|db:retrieveget-binary("DB", "music/01.mp3")}} returns the specified audio file as raw data.* <code><nowiki>stream:materialize(db:retrieveget-binary("DB", "music/01.mp3"))</nowiki></code> materializes the streamable result in main-memory before returning it.* <code><nowiki>convert:binary-to-string(db:retrieveget-binary("DB", "info.txt"), 'UTF-8')</nowiki></code> converts a binary database resource as UTF-8 text and returns a string.
|}
where db:is-raw($db, $src)
let $trg := $trg-path || substring-after($src, $src-path)
return db:put-binary($db, db:retrieveget-binary($db, $src), $trg)
</syntaxhighlight>
|}
* Added: {{Function|Database|Backups}}: Support for general data ([[User Management|registered users]], [[Jobs Module#Services|scheduled services]] and [[Store Module|key-value stores]]).
* Updated: {{Function||db:replace}} and {{Function||db:put-binary}} renamed (before: {{Code|db:replace}} and {{Code|db:store}}); function signature aligned with {{Function||db:add}} (second and third argument swapped).
* Updated: {{Function||db:get-binary}} renamed (before: {{Code|db:retrieve}}).
* Updated: {{Function||db:backups}}, {{Function||db:create-backup}}: Options added.
;Version 7.1
* Added: {{Function||db:list-details}}, {{Function||db:content-type}}
* Updated: {{Function||db:info}}, {{Function||db:system}}, {{Function|Code|db:retrieve}}
;Version 7.0
* Added: {{Function||db:retrieveexists}}, {{Code|db:storeretrieve}}, {{Function|Code|db:existsstore}}, {{Function|Code|db:is-raw}}, {{Function|Code|db:is-xml}}
* Updated: {{Function||db:list}}, {{Function||db:open}}, {{Function||db:add}}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu