Go's sql package already includes the Prepare
method but what if the SQL schema I have already includes prepared statements?
How would I call the following in go without using the Prepare
method?
PREPARE select_user (TEXT, VARCHAR) AS
SELECT id, email, is_admin FROM users
WHERE email = $1
AND password = crypt($2, password);