Closed mlawren closed 8 years ago
What's your 'node' version, i.e., the output of node -v
?
I wrote this for Node 4+ but I might have been carried away with ES2015 features there -- it should be fairly easy to fix anyway.
Thanks for reporting!
On Wed Apr 06, 2016 at 03:44:31AM -0700, Sylvester Keil wrote:
What's your 'node' version, i.e., the output of
node -v
?
v4.3.1
I wrote this for Node 4+ but I might have been carried away with ES2015 features there -- it's should be fairly easy to fix.
Thanks for reporting!
Thanks for open sourcing!
Mark Lawrence
OK I was a little bit too heavy on the new ES features there.
You should be able to work around this for now, by calling sqleton with the harmony flag. So you can do something like this:
# This fails on Node 4
$ sqleton -o db.pdf db.sqlite
# You can call it like this to make it work
$ node --harmony <full/path/to/sqleton/bin/sqleton> -o db.pdf db.sqlite
I'll push a new release asap that does not have this problem. By the way, I'm still tuning a lot of parameters because the results vary greatly between databases (depending on how many tables and foreign key constraints there are) -- if you want to tweak the parameters yourself the best way, at the moment, is to produce a .dot file adjust the parameters and then run your preferred layouter on it.
Version 1.2.1 should work on Node 4.x without harmony flag.
On Wed Apr 06, 2016 at 07:20:06AM -0700, Sylvester Keil wrote:
Version 1.2.1 should work on Node 4.x without harmony flag.
Good stuff - works well. Thanks for your quick and friendly response!
Mark Lawrence
Attempting to run sqleton on Debian GNU/Linux testing distribution fails with the following error:
I don't know node/npm at all but here are I assume the relevant versions of the dependencies: