Skip to content

question: .function API with user defiend async function/Promise ? #319

@yw662

Description

@yw662

Can I make sqlite3 work with user defined async function ?
sth. like

db.function('foo', () => new Promise((s,j)=>setTimeout(s, 1000, 1)));
db.prepare('select foo();').get();

This will result in TypeError: User-defined function foo() returned an invalid value for now. Any work around for this ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions