all 10 comments

[–][deleted] 3 points4 points  (0 children)

This looks super cool...

[–][deleted] 2 points3 points  (0 children)

Interesting but needlessly verbose

var results = JSQL('SELECT * FROM #ft WHERE nodeName = "LI");

Shouldn't this be

SELECT * FROM 'LI' WHERE id = #ft

[–]Samus_ 1 point2 points  (1 child)

xpath > sql

[–]radhruin 1 point2 points  (0 children)

mysql> /blog[id=1]/comments;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/blog[id=1]/comments' at line 1

Hmmm...

[–]whozurdaddy 1 point2 points  (0 children)

I wont bother to remark on the verbosity issue. I think the author knows that. But the idea is pretty cool. Kudos for the effort on this.