Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个本地安装的 Cloud Spanner 模拟器,在 docker 容器中运行。我怎样才能连接到它wrench?
wrench
为了连接,需要定义几个 CLI 参数。这是一个从数据库创建转储的完整命令:
SPANNER_EMULATOR_HOST=localhost:7010 wrench --database testdb --project testproj --instance testinst load --schema_file dump.sql
为了执行其他命令,您可能需要替换此命令的结尾,从load后面开始。
load