1 Star 0 Fork 146

鲁班长(深圳)科技有限公司/Administrative-divisions-of-China

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
export_csv.sh 515 Bytes
一键复制 编辑 原始数据 按行查看 历史
modood 提交于 2018-02-04 13:12 . feat: 新增 csv, json 数据导出脚本
#!/usr/bin/env bash
sqlite3 -header -csv ./dist/data.sqlite 'SELECT * FROM province ORDER BY code;' > ./dist/provinces.csv
sqlite3 -header -csv ./dist/data.sqlite 'SELECT * FROM city ORDER BY code;' > ./dist/cities.csv
sqlite3 -header -csv ./dist/data.sqlite 'SELECT * FROM area ORDER BY code;' > ./dist/areas.csv
sqlite3 -header -csv ./dist/data.sqlite 'SELECT * FROM street ORDER BY code;' > ./dist/streets.csv
sqlite3 -header -csv ./dist/data.sqlite 'SELECT * FROM village ORDER BY code;' > ./dist/villages.csv
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/lbzkj/Administrative-divisions-of-China.git
git@gitee.com:lbzkj/Administrative-divisions-of-China.git
lbzkj
Administrative-divisions-of-China
Administrative-divisions-of-China
master

搜索帮助