N
N
Neonoviiwolf2020-04-19 20:01:16
Python
Neonoviiwolf, 2020-04-19 20:01:16

How to convert the entire database to JSON?

Good! I don't understand python and db, maybe the question is obvious. There is a DB, I want to transform all DB in json. It turned out to convert each table to json, but is it possible to convert the entire database with one command?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2020-04-19
@vintello

If Google bans it, of course, it's bad.

N
Nikita Stupnikov, 2020-04-20
@JobJobBoy

select json_agg(tablename) from tablename;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question