我需要使用nodeJS运行一个 shell脚本文件,该文件执行一组Cassandra DB命令.任何人都可以帮我这个 在db.sh文件中. create keyspace dummy with replication = {'class':'SimpleStrategy','replication_factor':3}create t
在db.sh文件中.
create keyspace dummy with replication = {'class':'SimpleStrategy','replication_factor':3}
create table dummy (userhandle text, email text primary key , name text,profilepic)
您可以使用
shelljs module执行任何shell命令
const shell = require('shelljs')
shell.exec('./path_to_your_file')
