| 80 | |
| 81 | |
| 82 | In addition psycopg2 versus the Django connection; |
| 83 | |
| 84 | {{{ |
| 85 | >>> c = connection.cursor() |
| 86 | >>> c.execute('SELECT * FROM blxadmin_nextschedule where id = 1647824400') |
| 87 | >>> c.fetchone() |
| 88 | (1647824400.0, datetime.datetime(2022, 3, 21, 1, 0), 1, None) |
| 89 | |
| 90 | |
| 91 | >>> c = psycopg2.connect('user=blxa dbname=blxa port=5432 host=127.0.0.1') |
| 92 | >>> cur = c.cursor() |
| 93 | >>> cur.execute('SELECT * FROM blxadmin_nextschedule where id = 1647824400') |
| 94 | >>> cur.fetchone() |
| 95 | (1647824400.0, datetime.datetime(2022, 3, 21, 1, 0), 1, 1) |
| 96 | }}} |