Combining sql for ksqldb into a .sql file and executing

Ye… i come up with weird things :wink:

I execute my ksql vi a docker exec.

I’d like to combine/package all my create stream’s and create tables into a environment.sql file and then push/pipe into the ksql executed.

Anyone ?

G

Take a look at RUN SCRIPT. You would just need to mount a volume so that the container can access your .sql file.

1 Like

interesting that you can log into the ksql cli and run create commands, at the url:port but queries (“selects” and “prints”) need to be run against a /query endpoint if you do a run script
while in ksql cli you can run the select there…

G

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.