You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sqlite3 supports named query parameters in addition to positional ones (see https://sqlite.org/lang_expr.html). These are particularly nice for big, complex queries likely to evolve with software maintenance and it'd be great to be able support them in luadbi. Perhaps extending statement handles' :execute method to behave differently when given a single argument of typetable.
As it stands, I've had to fall back to LuaSQLite3 to better support these complex queries.
The text was updated successfully, but these errors were encountered:
I think this is a great feature, and it's worth adding support in LuaDBI.
Perhaps extending statement handles' :execute method to behave differently when given a single argument of type table.
I like this idea. The problem is, I don't (currently) see anything similar in the PostgreSQL or MySQL API's. They will need a way to cleanly and consistently fail if the programmer tries to use this SQLite-specific feature on one of those databases. It is probably not a big deal to have them simply call error() in the event of a single table being provided as bind arguments; but now I'm worried about what kinds of edge cases this presents.
sqlite3 supports named query parameters in addition to positional ones (see https://sqlite.org/lang_expr.html). These are particularly nice for big, complex queries likely to evolve with software maintenance and it'd be great to be able support them in luadbi. Perhaps extending statement handles'
:execute
method to behave differently when given a single argument oftype
table
.As it stands, I've had to fall back to LuaSQLite3 to better support these complex queries.
The text was updated successfully, but these errors were encountered: