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.9.4-x64-mingw-ucrt spec/data/make-iso-db.sh
amalgalite-1.9.4-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.9.4-x64-mingw32 spec/data/make-iso-db.sh
amalgalite-1.9.4 spec/data/make-iso-db.sh
libsql-0.1.0-x64-mingw-ucrt spec/data/make-iso-db.sh
libsql-0.1.0-x64-mingw32 spec/data/make-iso-db.sh
libsql-0.1.0-x86-mingw32 spec/data/make-iso-db.sh
libsql-0.1.0 spec/data/make-iso-db.sh
amalgalite-1.9.1-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.9.1-x64-mingw32 spec/data/make-iso-db.sh
amalgalite-1.9.1-x64-mingw-ucrt spec/data/make-iso-db.sh
amalgalite-1.9.1 spec/data/make-iso-db.sh
amalgalite-1.9.0-x64-mingw-ucrt spec/data/make-iso-db.sh
amalgalite-1.9.0-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.9.0-x64-mingw32 spec/data/make-iso-db.sh
amalgalite-1.9.0 spec/data/make-iso-db.sh
amalgalite-1.8.0-x64-mingw-ucrt spec/data/make-iso-db.sh
amalgalite-1.8.0-x64-mingw32 spec/data/make-iso-db.sh
amalgalite-1.8.0-x86-mingw32 spec/data/make-iso-db.sh
amalgalite-1.8.0 spec/data/make-iso-db.sh