Run below in sqlite3, or create
myexport.sql
.headers on .mode csv .output myexport.csv SELECT * FROM mytable; .quit
If myexport.sql, pipe through Powershell:
gc .\myexport.sql | sqlite3 mydatabase.db
If you want to look at the CSV as an object, execute:
$MyObject = gc myexport.csv | ConvertFrom-Csv
More about Powershell and SQLite3 inegration here.
No comments:
Post a Comment