Skip to content

Commit

Permalink
Remove wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mdarse authored and lpil committed Aug 19, 2024
1 parent 450b6a0 commit 072388b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sqlight.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,9 @@ pub fn text(value: String) -> Value {
/// Convert a Gleam `BitString` to an SQLite blob, to be used an argument to a
/// query.
///
pub fn blob(value: BitArray) -> Value {
coerce_blob(value)
}

@external(erlang, "sqlight_ffi", "coerce_blob")
@external(javascript, "./sqlight_ffi.js", "coerce_blob")
fn coerce_blob(a: BitArray) -> Value
pub fn blob(value: BitArray) -> Value

/// Convert a Gleam `Bool` to an SQLite int, to be used an argument to a
/// query.
Expand Down

0 comments on commit 072388b

Please sign in to comment.