Skip to content

Bind named query parameter #330

@rhcarvalho

Description

@rhcarvalho

In addition to positional params, SQLite supports named query parameters. I tend to prefer named params when writing queries by hand as it is more descriptive and less error prone than positional params.

sqlite> .parameter set :name John
sqlite> SELECT upper(:name);
┌──────────────┐
│ upper(:name) │
├──────────────┤
│ 'JOHN'       │
└──────────────┘

Is it possible to achieve something similar with Ecto/Exqlite?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions