How do I setup beerdb?

87 views
Skip to first unread message

前島真一

unread,
Oct 13, 2014, 10:59:49 AM10/13/14
to bee...@googlegroups.com
Hello

I want to use beerdb command.

So I use commands written in http://openbeer.github.io/ to setup beerdb.

$ beerdb setup --include ./at-austria --worldinclude ./world.db

But I got an error message. How do I setup beerdb?

```
$ beerdb setup --include ./at-austria --worldinclude ./world.db
confdb/1.1.1 on Ruby 2.1.3 (2014-09-19) [x86_64-darwin13.0]
tagutils/0.2.2 on Ruby 2.1.3 (2014-09-19) [x86_64-darwin13.0]
  [TagDb.has_many_tags] adding taggings n tags has_many assocs to model >WorldDb::Model::Country<
  [TagDb.has_many_tags] adding taggings n tags has_many assocs to model >WorldDb::Model::Region<
  [TagDb.has_many_tags] adding taggings n tags has_many assocs to model >WorldDb::Model::City<
worlddb/2.0.4 on Ruby 2.1.3 (2014-09-19) [x86_64-darwin13.0]
beerdb 0.9.4 on Ruby 2.1.3 (2014-09-19) [x86_64-darwin13.0]
logdb 0.6.0 on Ruby 2.1.3 (2014-09-19) [x86_64-darwin13.0]
beerdb 0.9.4 on Ruby 2.1.3 (2014-09-19) [x86_64-darwin13.0]
beerdb 0.9.4 on Ruby 2.1.3 (2014-09-19) [x86_64-darwin13.0]
working directory: /Users/maeshima/tmp/beers
Connecting to db using settings: 
{:adapter=>"sqlite3", :database=>"./beer.db"}
-- create_table(:logs)
   -> 0.0180s
-- create_table(:places)
   -> 0.0012s
-- create_table(:names)
   -> 0.0011s
-- create_table(:continents)
   -> 0.0011s
-- add_index(:continents, :key, {:unique=>true})
   -> 0.0026s
-- create_table(:countries)
   -> 0.0037s
-- add_index(:countries, :key, {:unique=>true})
   -> 0.0008s
-- add_index(:countries, :code, {:unique=>true})
   -> 0.0011s
-- create_table(:regions)
   -> 0.0016s
-- add_index(:regions, [:key, :country_id], {:unique=>true})
   -> 0.0012s
-- create_table(:cities)
   -> 0.0012s
-- create_table(:langs)
   -> 0.0019s
-- create_table(:usages)
   -> 0.0010s

*** error: Could not find table 'props'
```

Thanks.

Gerald Bauer

unread,
Oct 13, 2014, 12:43:06 PM10/13/14
to bee...@googlegroups.com
Hello,

   Thanks for your interest in beer.db.   I've updated the gems and, unfortunately, for now the command line tool is not yet up-to-date (working). Sorry.

   Please, use the build script [1] for creating the database and reading in datasets. Cheers.


Reply all
Reply to author
Forward
0 new messages