| width='120' | '''Signature'''
|<pre>db:copy(
$db database as xs:string, $new-name as xs:string
) as empty-sequence()</pre>
|- valign="top"
| '''Summary'''
|Creates a copy of the database {{Code|$dbdatabase}}, which will be called {{Code|$new-name}}.
|- valign="top"
| '''Errors'''