Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
daichirata committed Jan 26, 2020
1 parent b487339 commit d5f4e67
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Usage:
hammer [command]
Available Commands:
create Create database and apply schema
diff Diff schema
export Export schema
help Help about any command
Expand All @@ -39,7 +40,13 @@ Examples:
hammer export spanner://projects/projectId/instances/instanceId/databases/databaseName > schema.sql
* Apply local schema file
hammer spanner://projects/projectId/instances/instanceId/databases/databaseName /path/to/file.sql
hammer spanner://projects/projectId/instances/instanceId/databases/databaseName /path/to/file
* Create database and apply local schema (faster than running database creation and schema apply separately)
hammer create spanner://projects/projectId/instances/instanceId/databases/databaseName /path/to/file
* Copy database
hammer create spanner://projects/projectId/instances/instanceId/databases/databaseName1 spanner://projects/projectId/instances/instanceId/databases/databaseName2
* Compare local files
hammer diff /path/to/file /another/path/to/file
Expand Down

0 comments on commit d5f4e67

Please sign in to comment.