{"id":17500493,"url":"https://github.com/catkins/bt-emu","last_synced_at":"2025-03-29T00:15:55.502Z","repository":{"id":78340233,"uuid":"139528082","full_name":"catkins/bt-emu","owner":"catkins","description":"CLI wrapper around bigtable emulator","archived":false,"fork":false,"pushed_at":"2018-07-03T04:31:09.000Z","size":2545,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T22:30:18.834Z","etag":null,"topics":["bigtable","cli","emulator","golang","testing"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catkins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-03T04:21:00.000Z","updated_at":"2023-02-01T04:56:31.000Z","dependencies_parsed_at":"2023-04-06T11:53:29.905Z","dependency_job_id":null,"html_url":"https://github.com/catkins/bt-emu","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"7fedc15087f955bd59ba6bc20d09cb3a5e9ce083"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catkins%2Fbt-emu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catkins%2Fbt-emu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catkins%2Fbt-emu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catkins%2Fbt-emu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catkins","download_url":"https://codeload.github.com/catkins/bt-emu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246117763,"owners_count":20726069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigtable","cli","emulator","golang","testing"],"created_at":"2024-10-19T18:23:45.470Z","updated_at":"2025-03-29T00:15:55.476Z","avatar_url":"https://github.com/catkins.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BigTable emulator\n\nLittle wrapper CLI around the bigtable emulator included in the GCP Go package.\n\n### Usage\n\n```sh\ngo install ./...\n```\n\nCreate a schema file and seeds file\n\n```yml\n# schema.yml\n---\nproject: bt_test\ninstance: bt_test\ntables:\n  - name: users\n    families:\n      - meta\n      - attributes\n\n  - name: events\n    families:\n      - meta\n      - attributes\n\n\n```\n\n```yml\n# seeds.yml\n---\nusers:\n  \"0001\":\n    meta:\n      created_at: 2016-06-01\n    attributes:\n      first_name: 'David'\n      last_name: 'Walsh'\n  \"0002\":\n    meta:\n      created_at: 2016-07-02\n    attributes:\n      first_name: 'Gavin'\n      last_name: 'Smith'\n\nevents:\n  \"0001#201606011101#page_view\":\n    meta:\n      created_at: 2016-06-01 11:01\n    attributes:\n      url: \"https://google.com\"\n\n```\n\nStart the emulator\n\n```sh\nbt-emu -port 9999 -schema schema.yml -seeds seeds.yml\n```\n\n\n### Usage with QBT\n\n`bt-emu` was created on a flight from Sydney to San Francisco so that I could make some changes to [`qbt`](https://github.com/catkins/qbt), my little CLI tool for interacting with BigTable via Lua scripts.\n\n```\n qbt --emulator=localhost:9999 query users 'return row.attributes[\"attributes:first_name\"] == \"Gavin\"' | jq\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatkins%2Fbt-emu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatkins%2Fbt-emu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatkins%2Fbt-emu/lists"}