I am writing custom code to generate a SqlStreamingAction.
SqlStreamingAction
The function body basically generates a raw SQL string (Postgres flavor) with