News for hackers. Stuff that matters.
Re:Show HN: oculus - a logging, web-based SQL client for tea... by gsiener on Tuesday June 05, 2012 @02:24PM (#4070028)
Very cool. Reminds me of Heroku's Data Clip [1] service released as part of their Postgres as a service offering.

[1] https://postgres.heroku.com/blog/past/2012/1/31/simple_data_...

Re:Show HN: oculus - a logging, web-based SQL client for tea... by prosa on Tuesday June 05, 2012 @03:01PM (#4070236)
Yeah, that's a neat project. I was already thinking about building this before they launched, and their positive reception spurred me on.

If you're already using Heroku Postgres there's a ton of overlap between the services, but I'm hoping to provide a decent open source alternative for the rest of us. :)

Re:Show HN: oculus - a logging, web-based SQL client for tea... by prosa on Tuesday June 05, 2012 @01:56PM (#4069827)
Author here. I do a lot of analysis each day and am constantly sharing it with my team by taking screenshots of Sequel Pro. I built Oculus so I could keep a centrally available repository of my research, that everyone could access and collaborate on. It definitely has a ways to go, but I would love feedback!

Also, this is my first attempt at providing a live demo of software that can execute arbitrary SQL. I'm probably crazy for doing this, but I thought it was a lot more interesting than doing a video. If the demo suddenly disappears, you'll know I wasn't able to harden it enough... :)

Re:Show HN: oculus - a logging, web-based SQL client for tea... by benatkin on Tuesday June 05, 2012 @02:26PM (#4070043)
Great idea, and very well executed! I ran a few queries and got this: http://demo.oculusapp.com/queries/204
Re:Show HN: oculus - a logging, web-based SQL client for tea... by prosa on Tuesday June 05, 2012 @02:29PM (#4070063)
Thanks! (Sadly I think the demo cron job will delete that after an hour or so :))
Re:Show HN: oculus - a logging, web-based SQL client for tea... by jfi on Tuesday June 05, 2012 @01:51PM (#4069798)
social sequel pro - very innovative!
Re:Show HN: oculus - a logging, web-based SQL client for tea... by toomuchtodo on Tuesday June 05, 2012 @02:45PM (#4070156)
If only there was something like this for SQL Server =(
Re:Show HN: oculus - a logging, web-based SQL client for tea... by prosa on Tuesday June 05, 2012 @02:53PM (#4070196)
If you can run Rack apps in your environment, it would be pretty straightfoward to add a SQL Server driver to Oculus. Right now it supports MySQL and Postgres.
Re:Show HN: oculus - a logging, web-based SQL client for tea... by toomuchtodo on Tuesday June 05, 2012 @03:21PM (#4070338)
Our environment is self-managed and flexible, so I should be able to throw something together to run this.

If I get it to work, I'll pass along whatever info I learn in the process.

Re:Show HN: oculus - a logging, web-based SQL client for tea... by prosa on Tuesday June 05, 2012 @03:39PM (#4070424)
Cool! I'm happy to provide guidance, and I'll take a pull request if you can get it working with some unit tests.
Re:Show HN: oculus - a logging, web-based SQL client for tea... by mrpollo on Tuesday June 05, 2012 @03:40PM (#4070434)
Kinda similar, http://sqlfiddle.com/ has support for various SQL Servers
Re:Show HN: oculus - a logging, web-based SQL client for tea... by Toshio on Tuesday June 05, 2012 @02:24PM (#4070026)
I would be fascinated to find out how you protect against SQL injection.
Re:Show HN: oculus - a logging, web-based SQL client for tea... by prosa on Tuesday June 05, 2012 @02:27PM (#4070055)
It's designed to be used within a team environment, where you trust everyone. (Although even then, I highly recommend using it with a readonly SQL account!) I would be skeptical of any situation where you could run raw untrusted SQL without any risks, at least without reimplementing MySQL's AST parser.

As for the demo, it's isolated, and locked down as well as MySQL will allow. (For starters, just SELECT privileges.)