Skip to content

doekman/postgres-with-trello

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
.ok
 
 
 
 
 
 
 
 
 
 
 
 
 
 

postgres-with-trello

In Trello, you can export board-data to JSON. In this repository, you will find SQL to work with those.

The files data/simple_board_v1.json and ...v2.. are exported from this public board.

NOTICE: this repository uses an ok-profile.

Getting started

To get started, open a terminal session and go to this repository folder.

make 

will show how you how to use the makefile. The command

make trello

will create the table+views (trello). Now load some data:

tool/loaddoc.sh data/simple_board.json

Now you are ready to query:

psql
\d

The last command shows all tables and views you can query from. Let's query some:

select * from trello.board;
select * from trello.card where doc_id=1;
select * from trello.list;

And to quit psql, type:

\q

More

  • There are some example queries in queries.md
  • If you want to contribute, please create an issue so we can discuss first

About

Put Trello JSON export into postgres, and query this

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published