Skip to content

[feat]: Unique name for prepared statement #49

@cesco69

Description

@cesco69

Hi! Thanks for this awersome library!

Some library like pg has a name parameter for prepared statement. My suggestion is autogenerate this name, maybe by hashing the SQL

Eg.:

import { xxh32 } from "@node-rs/xxhash";

get name() {
    return xxh32(this.text).toString(16);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions