Skip to content

MAPC/tufted-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typical Rails app - connect to any database via database.yml. To access that data, for example:

http://localhost:3000/tables/mydata

will yield a JSON representation of that table.

Other features: Accept particular SQL statements through the URL

http://localhost:3000/tables/SELECT 10
http://localhost:3000/tables/SELECT * FROM fmr WHERE municipal='Boston'

Security: Probably the safest way to use this tool is to simply set up a highly restricted read-only user in postgres. This allows only READ operations on the database.

Other issues: Next steps would be to implement pagination and improve the api. The API could factor out typical SQL statements into URL parameters (table?select=*&?where=“{municipal: ‘Boston’”). Maybe just be worth our time to accept regular SQL statements for now.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors