Sha256: 49d5bca140f6e4967d0c9abc07dcee1088be52bb31772fa1bced7d87d37d68b1

Contents?: true

Size: 356 Bytes

Versions: 53

Compression:

Stored size: 356 Bytes

Contents

#!/bin/sh

DB="iso-3166.db"
SCHEMA="iso-3166-schema.sql"

rm -f ${DB}
sqlite3 ${DB} < ${SCHEMA}
echo ".import iso-3166-country.txt country" | sqlite3 ${DB} 
echo ".import iso-3166-subcountry.txt subcountry" | sqlite3 ${DB} 

sqlite3 ${DB} "select 'country_count',  count(1) from country"
sqlite3 ${DB} "select 'subcountry_count', count(1) from subcountry"

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
amalgalite-1.7.0-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.7.0-x64-mingw32 spec/data/make-iso-db.sh
amalgalite-1.7.0 spec/data/make-iso-db.sh
amalgalite-1.6.3-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.6.3-x64-mingw32 spec/data/make-iso-db.sh
amalgalite-1.6.3 spec/data/make-iso-db.sh
amalgalite-1.6.1-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.6.1-x64-mingw32 spec/data/make-iso-db.sh
amalgalite-1.6.1 spec/data/make-iso-db.sh
amalgalite-1.6.0-x64-mingw32 spec/data/make-iso-db.sh
amalgalite-1.6.0-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.6.0 spec/data/make-iso-db.sh
amalgalite-1.5.0-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.5.0 spec/data/make-iso-db.sh
amalgalite-1.4.1-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.4.1 spec/data/make-iso-db.sh
amalgalite-1.4.0-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.4.0 spec/data/make-iso-db.sh
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/data/make-iso-db.sh
amalgalite-1.3.0-x86-mswin32 spec/data/make-iso-db.sh