Hi, I am using this trino client to query our trino database and I cannot figure out how to use golang sql.NamedArg with it.
For example, the query function call looks like:
db.Query("SELECT * FROM prometheus WHERE \"metricName\" = :metric", sql.NamedArg("metric", "cpu_usage"))
Hi, I am using this trino client to query our trino database and I cannot figure out how to use golang
sql.NamedArg
with it. For example, the query function call looks like:But I received the following error:
I have also tried
@metric
but it didn't work either, so I am wondering whether the trino client supportsNamedArg
or not?My runtime environment is:
Thank you!