2020-04-28 17:29:52 +02:00
|
|
|
---
|
2021-09-13 00:48:07 +02:00
|
|
|
title: "SQLite pretty print"
|
2020-04-28 17:29:52 +02:00
|
|
|
date: 2019-06-19
|
2021-09-13 00:48:07 +02:00
|
|
|
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 :
|
2023-04-23 22:33:49 +02:00
|
|
|
```cfg
|
2020-04-28 17:29:52 +02:00
|
|
|
.mode column
|
|
|
|
.headers on
|
|
|
|
.separator ROW "\n"
|
|
|
|
.nullvalue NULL
|
2023-04-23 22:33:49 +02:00
|
|
|
```
|