about summary refs log tree commit diff stats
path: root/modules/by-name/lf/lf/ctpv/prev/application/sqlite/sqlite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/lf/lf/ctpv/prev/application/sqlite/sqlite.sh')
-rw-r--r--modules/by-name/lf/lf/ctpv/prev/application/sqlite/sqlite.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/by-name/lf/lf/ctpv/prev/application/sqlite/sqlite.sh b/modules/by-name/lf/lf/ctpv/prev/application/sqlite/sqlite.sh
new file mode 100644
index 00000000..07e77a93
--- /dev/null
+++ b/modules/by-name/lf/lf/ctpv/prev/application/sqlite/sqlite.sh
@@ -0,0 +1,22 @@
+#! /usr/bin/env dash
+
+# shellcheck source=/dev/null
+SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH
+
+# shellcheck disable=SC2269
+f="$f"
+# shellcheck disable=SC2269
+w="$w"
+
+. %HELPERS
+
+echo "SQLite database. Schema:"
+echo
+
+sqlite3 "$f" ".schema --indent" | bat \
+    --color always \
+    --style plain \
+    --paging never \
+    --language SQL \
+    --terminal-width "$w" \
+    --wrap character