www/content/blog/miscellaneous/sqlite-pretty-print.md

17 lines
249 B
Markdown
Raw Normal View History

2020-04-28 17:29:52 +02:00
---
title: "SQLite pretty print"
2020-04-28 17:29:52 +02:00
date: 2019-06-19
description: How to pretty print your SQLite output
2021-03-12 18:12:41 +01:00
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 :
```cfg
2020-04-28 17:29:52 +02:00
.mode column
.headers on
.separator ROW "\n"
.nullvalue NULL
```