Adding count of total rows through Marshmallow with @post_dump?
问题 I need to add the quantity of rows returned in this query: queryPostgres = db.text(""" SELECT *, COUNT(*) OVER () as RowCount FROM ( SELECT * , ( 3958.75 * acos(sin(:lat1 / 57.2958) * sin( cast(latitude as double precision) / 57.2958) + cos(:lat1 / 57.2958) * cos( cast(latitude as double precision) / 57.2958) * cos( cast(longitude as double precision) / 57.2958 - :lon1/57.2958))) as distanceInMiles FROM "job" ) zc WHERE zc.distanceInMiles < :dst ORDER BY zc.distanceInMiles LIMIT :per_page