mysql icon indicating copy to clipboard operation
mysql copied to clipboard

Make passing format_options to format_sql less verbose

Open anarthal opened this issue 1 year ago • 0 comments

Currently it's

format_sql(conn.format_opts().value(), "SELECT {}", 42);

We can do better and provide some wrapper like:

format_sql(conn, "SELECT {}", 42);
conn.format_sql("SELECT {}", 42);
conn.execute(query("SELECT {}", 42));

anarthal avatar Feb 15 '24 15:02 anarthal