Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --one-off / --command CLI option #39

Closed
mildbyte opened this issue Aug 3, 2022 · 0 comments · Fixed by #62
Closed

Add a --one-off / --command CLI option #39

mildbyte opened this issue Aug 3, 2022 · 0 comments · Fixed by #62

Comments

@mildbyte
Copy link
Contributor

mildbyte commented Aug 3, 2022

Running e.g. ./seafowl --one-off "CREATE TABLE ..." should, instead of starting a server, just execute a single command against the context and exit. This is going to be used when baking a dataset into a Docker image, e.g.:

RUN \
	wget https://some-csv.com/file.csv -o file.csv && \
	seafowl --one-off \
		"CREATE EXTERNAL TABLE t LOCATION 'file://file.csv'; \
		CREATE TABLE t_frozen AS SELECT * FROM t;" && \
	rm file.csv
@mildbyte mildbyte added this to the Initial release milestone Aug 3, 2022
mildbyte added a commit that referenced this issue Aug 19, 2022
Fixes #39

Supports multiple commands but hackily (splits on `;`).
mildbyte added a commit that referenced this issue Aug 19, 2022
Fixes #39

Supports multiple commands but hackily (splits on `;`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant