I have table Users in my database:
| id | name | last_name | status |
|---|---|---|---|
| 1 | John | Black | active |
| 2 | Drake | Bell | disabled |
| 3 | Pep | Guardiola | active |
| 4 | Steve | Salt | active |
users_data = []
I would like to get all id and all status row from this db and write to empty dict.
What kind of query should I use? Filter, get or something else?
And what if I would like to get one column, not two?