Public

Versions

  • v1

    3/10/2024
    Open: Version
    Changes from v0 to v1
    +1
    -1
    ⦚ 3 unchanged lines ⦚
    export default rpc(async (statement: InStatement) => {
    try {
    const res = await sqlite.batch([statement], "read");
    return res[0];
    } catch (e) {
    ⦚ 5 unchanged lines ⦚
    ⦚ 3 unchanged lines ⦚
    export default rpc(async (statement: InStatement) => {
    try {
    const res = await sqlite.execute(statement);
    return res[0];
    } catch (e) {
    ⦚ 5 unchanged lines ⦚
  • v0

    3/10/2024
    Open: Version
    +13
    -0

    import { rpc } from "https://esm.town/v/std/rpc?v=5";
    import { InStatement, sqlite } from "https://esm.town/v/std/sqlite?v=4";

    export default rpc(async (statement: InStatement) => {
    try {
    const res = await sqlite.batch([statement], "read");
    return res[0];
    } catch (e) {
    throw new Response(e.message, {
    status: 500,
    });
    }
    });
1
Next
pomdtr-execute.web.val.run
Updated: March 10, 2024