sqlgen: deduplicate common code shared between Query and QueryRow
sqlgen: deduplicate common code shared between Query and QueryRow

samsarahq/thunder,samsarahq/thunder,samsarahq/thunder,samsarahq/thunder,samsarahq/thunder