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/liuzidong/Administrative-divisions-of-China.git
git@gitee.com:liuzidong/Administrative-divisions-of-China.git
liuzidong
Administrative-divisions-of-China
Administrative-divisions-of-China
master

搜索帮助