Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

ssc pulldata #8

Closed
sbechet opened this issue Aug 8, 2017 · 10 comments · Fixed by #26
Closed

ssc pulldata #8

sbechet opened this issue Aug 8, 2017 · 10 comments · Fixed by #26

Comments

@sbechet
Copy link

sbechet commented Aug 8, 2017

Add ssc pulldata to save data in .sql format

@winzig
Copy link

winzig commented Apr 30, 2018

This would be awesome to have for lookup tables. Perhaps some way to designate which of your tables you want to track in this way.

@justinlettau justinlettau mentioned this issue Jun 11, 2018
3 tasks
@winzig
Copy link

winzig commented Jun 22, 2018

@justinlettau I'm trying to figure out how to use this new feature. It looks like we need to define a data array of globs in the config .json file, which I've done:

"data": ["dbo.Coupons", "dbo.DiscussionTopics", "dbo.Lookup*", "dbo.Partners", "dbo.Webheads"]

I'm running ssc pull on the command line, but I'm not seeing anything new generated. Am I missing anything? Thanks!

@justinlettau
Copy link
Owner

@winzig Yeah, the data glob is correct. Are you running v1.8.0?

@winzig
Copy link

winzig commented Jun 22, 2018

Yep

@justinlettau
Copy link
Owner

Well, it should be generating files in the _sql-database/data/ directory. Can you post your config?

@winzig
Copy link

winzig commented Jun 22, 2018

The only other thing defined in my config is my SQL connection properties. So it's just that, and the data glob array. Do I need something else defined in there to tell it to do the data pull?

@winzig
Copy link

winzig commented Jun 22, 2018

hmmm... I think I see the issue. It looks like I have both a global and a local installation of ssc. The local one appears to be 1.7.1. Sorry!

@justinlettau
Copy link
Owner

Glad you figured it out!

@winzig
Copy link

winzig commented Jun 22, 2018

It's mostly working for me now, but data entry for "dbo.Lookup*" seems to cause it to choke. I'm guessing this type of file glob is not allowed?

@justinlettau
Copy link
Owner

Hmm, I guess I the docs are wrong (sorry). I think currently is is a list of table names, not a glob.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants