dbmate 2.12.0 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -22,6 +22,7 @@ For a comparison between dbmate and other popular database schema migration tool
22
22
  - [MySQL](#mysql)
23
23
  - [SQLite](#sqlite)
24
24
  - [ClickHouse](#clickhouse)
25
+ - [BigQuery](#bigquery)
25
26
  - [Creating Migrations](#creating-migrations)
26
27
  - [Running Migrations](#running-migrations)
27
28
  - [Rolling Back Migrations](#rolling-back-migrations)
@@ -287,6 +288,28 @@ DATABASE_URL="clickhouse://username:password@127.0.0.1:9000/database_name?on_clu
287
288
 
288
289
  [See other supported connection options](https://github.com/ClickHouse/clickhouse-go#dsn).
289
290
 
291
+ #### BigQuery
292
+ Follow the following format for `DATABASE_URL` when connecting to actual BigQuery in GCP:
293
+
294
+ ```
295
+ bigquery://projectid/location/dataset
296
+ ```
297
+ `projectid` (mandatory) - Project ID
298
+
299
+ `dataset` (mandatory) - Dataset name within the Project
300
+
301
+ `location` (optional) - Where Dataset is created
302
+
303
+ *NOTE: Follow [this doc](https://cloud.google.com/docs/authentication/provide-credentials-adc) on how to set `GOOGLE_APPLICATION_CREDENTIALS` environment variable for proper Authentication*
304
+
305
+ Follow the following format if trying to connect to a custom endpoint e.g. [BigQuery Emulator](https://github.com/goccy/bigquery-emulator)
306
+
307
+ ```
308
+ bigquery://host:port/projectid/location/dataset?disable_auth=true
309
+ ```
310
+
311
+ `disable_auth` (optional) - Pass `true` to skip Authentication, use only for testing and connecting to emulator.
312
+
290
313
  ### Creating Migrations
291
314
 
292
315
  To create a new migration, run `dbmate new create_users_table`. You can name the migration anything you like. This will create a file `db/migrations/20151127184807_create_users_table.sql` in the current directory:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbmate",
3
- "version": "2.12.0",
3
+ "version": "2.14.0",
4
4
  "description": "A lightweight, framework-agnostic database migration tool",
5
5
  "repository": "https://github.com/amacneil/dbmate",
6
6
  "homepage": "https://github.com/amacneil/dbmate#readme",
@@ -24,12 +24,12 @@
24
24
  "build": "tsc --build"
25
25
  },
26
26
  "optionalDependencies": {
27
- "@dbmate/linux-ia32": "2.12.0",
28
- "@dbmate/linux-x64": "2.12.0",
29
- "@dbmate/linux-arm": "2.12.0",
30
- "@dbmate/linux-arm64": "2.12.0",
31
- "@dbmate/darwin-x64": "2.12.0",
32
- "@dbmate/darwin-arm64": "2.12.0",
33
- "@dbmate/win32-x64": "2.12.0"
27
+ "@dbmate/linux-ia32": "2.14.0",
28
+ "@dbmate/linux-x64": "2.14.0",
29
+ "@dbmate/linux-arm": "2.14.0",
30
+ "@dbmate/linux-arm64": "2.14.0",
31
+ "@dbmate/darwin-x64": "2.14.0",
32
+ "@dbmate/darwin-arm64": "2.14.0",
33
+ "@dbmate/win32-x64": "2.14.0"
34
34
  }
35
35
  }