skip to Main Content

Query in Laravel, get multiple data with GroupBy

I have a table with these columns: event_time (date) event_data (json) player_account char() I'm trying to get all three fields from my query and groupBy by "player_account" field. The problem is doing this query: DB::connection('aa')-table('bb') ->where('event_time', ">", $date) ->select('event_time', 'event_data',…

VIEW QUESTION

Postgresql – Problem with databe "TypeError: <generator object get_db at 0x000002B68FBDB100> is not a callable object"

I get File "C:PythonProjectsmyProjectroutershome.py", line 39, in @router.get("/home", response_class=HTMLResponse) ... raise TypeError('{!r} is not a callable object'.format(obj)) TypeError: <generator object get_db at 0x000002B68FBDB100> is not a callable object home.py from fastapi import Depends, APIRouter, Request from fastapi.templating import Jinja2Templates from…

VIEW QUESTION
Back To Top
Search