2020-04-28 17:29:52 +02:00
|
|
|
---
|
|
|
|
title: "Sqlite pretty print"
|
|
|
|
date: 2019-06-19
|
2021-03-12 18:12:41 +01:00
|
|
|
description: How to pretty print your Sqlite output
|
|
|
|
tags:
|
|
|
|
- SQLite
|
2020-04-28 17:29:52 +02:00
|
|
|
---
|
|
|
|
|
2021-03-12 18:12:41 +01:00
|
|
|
## The solution
|
|
|
|
In `~/.sqliterc` add the following :
|
2020-04-28 17:29:52 +02:00
|
|
|
{{< highlight sh >}}
|
|
|
|
.mode column
|
|
|
|
.headers on
|
|
|
|
.separator ROW "\n"
|
|
|
|
.nullvalue NULL
|
|
|
|
{{< /highlight >}}
|