-auto mt-20"><strong>Example</strong><p class="code-caption">Register a simple function</p><div class="rel"><pre class="prettyprint"><code>        db.create_function("addOne", function (x) {return x+1;})
        db.exec("SELECT addOne(1)") // = 2
    </code></pre><form action="https://codepen.io/pen/define" method="POST" target="_blank" class="codepen-form"><input type="hidden" name="data" value='{"title": "Register a simple function", "js": &quot;import {AgentArray} from &apos;https://unpkg.com/agentscri