# mongobq

> Command line tool to import MongoDB collection into BigQuery

Latest version **0.2.1** (published 2016-09-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install mongobq
pnpm add mongobq
yarn add mongobq
bun add mongobq
```

Provides the command `mongobq`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2016-09-15 |
| First published | 2014-12-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.12.0 |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 43 |
| Author | Kazuyuki Honda |
| Maintainers | hakobera |
| Keywords | mongodb, bigquery |

## Links

- npm: https://www.npmjs.com/package/mongobq
- Repository: https://github.com/hakobera/mongobq
- Issues: https://github.com/hakobera/mongobq/issues
- npm.io page: https://npm.io/package/mongobq

## Dependencies (7)

- [async](https://npm.io/package/async.md) ^0.9.0
- [gcloud](https://npm.io/package/gcloud.md) ^0.33.0
- [moment](https://npm.io/package/moment.md) ^2.8.4
- [mongodb](https://npm.io/package/mongodb.md) ^2.1.19
- [through2](https://npm.io/package/through2.md) ^0.6.5
- [commander](https://npm.io/package/commander.md) ^2.5.0
- [underscore](https://npm.io/package/underscore.md) ^1.7.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.2.1 (latest) — 2016-09-15
- 0.2.0 — 2016-06-13
- 0.1.4 — 2014-12-24
- 0.1.3 — 2014-12-11
- 0.1.2 — 2014-12-10
- 0.1.1 — 2014-12-10
- 0.1.0 — 2014-12-10

## README

[![Build Status](https://travis-ci.org/hakobera/mongobq.svg?branch=master)](https://travis-ci.org/hakobera/mongobq)

# mongobq

`mongobq` is a command line tool to import MongoDB collection into BigQuery.

mongobq >= 0.2.0 only works with node >= 0.12.0.
You want to use with node 0.10 or below, use 0.1.4.

## Usage

```
  Usage: mongobq [options]

  Options:

    -h, --help                      output usage information
    -V, --version                   output the version number
    --host <hostname>               specifies a hostname for the mongod. (Default: "localhost")
    --port <port>                   specifies the TCP port for the mongod. (Default: 27017)
    -u, --username <username>       specifies a mongodb username to authenticate
    -p, --password <password>       specifies a mongodb password to authenticate
    -d, --database <database>       specifies the name of the database
    -c, --collection <collection>   specifies the collection to export
    -f, --fields <field1[,field2]>  specifies a field or fields to include in the export
    -q, --query <JSON>              provides a JSON document as a query that optionally limits the documents returned in the export
    -l, --limit <limit>             limit number of documents returned from query
    -s, --skip <skip>               skip specified number of documents
    -K, --keyfile <keyfile>         specifies the key file path
    -B, --bucket <bucket>           specifies the Google Cloud Storage bucket name
    -O, --path <path>               specifies the output path of the bucket (Default: "/")
    -X, --suffix <suffix format>    specifies the suffix format (Default: "YYYYMMDDHHmmss")
    -P, --project <project>         specifies the project ID of Google Cloud Platform
    -D, --dataset <dataset>         specifies the dataset ID of BigQuery
    -T, --table <table>             specifies the table ID of BigQuery
    -S, --schema <schemafile>       specifies the table schema of BigQuery table to import
    --autoclean                     clean after run
    --async                         no wait load job
    --nocompress                    nocompress data when upload to Google Cloud Storage
    --dryrun                        run as dryrun mode
```

## License

Apache License, Version 2.0

---
_Source: https://npm.io/package/mongobq · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
