镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Support user-defined functions (UDFs) #54

Open

Description

@clue
$db = new Clue\React\Sqlite\SqliteClient(':memory:');

$db->on('open', function () use ($db) {
    $db->createFunction('hash', 'sha1', 1);
});

$db->query('SELECT hash("foo")')->then('var_dump');

See https://www.php.net/manual/en/sqlite3.createfunction.php
Refs #47

Activity

  1. added this to the v3.0.0 milestone on Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needednew featureNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions