l

lsql

v52cc7d1library

ls + sql

0 stars0 forksUnknownupdated 4 months ago
Open repo

lsql

Small test to see how ergonomic it would be to query a directory using SQL.

The name comes from combining ls and sql.

Examples

Query a directory

# Query the current directory
lsql "SELECT * FROM ."

# Query the temp directory
lsql "SELECT * FROM /tmp"

Just return the name of the files in the current directory if you're in this repo.

lsql "SELECT name, mode FROM ."

| name        | mode      |
|-------------|-----------|
| main.odin   | rw-r--r-- |
| lexer.odin  | rw-r--r-- |
| .envrc      | rw-r--r-- |
| flake.lock  | rw-r--r-- |
| lsql        | rwxr-xr-x |
| README.md   | rw-r--r-- |
| parser.odin | rw-r--r-- |
| .gitignore  | rw-r--r-- |
| flake.nix   | rw-r--r-- |
| .git        | rwxr-xr-x |
| .direnv     | rwxr-xr-x |

Usage

lsql command [-raw]
Flags:
        -command:<string>, required  | Statement to be executed
                                     |
        -raw                         | Do not pretty print the results or headers

Fields Available

  • name
  • inode
  • size
  • mode
  • type
  • creation_time
  • modification_time
  • access_time
Package Info
Version
v52cc7d1
License
Unknown
Author
@rstefanic
Type
library
Forks
0
Created
4 months ago
Updated
4 months ago
Health
maintained
has releases
has readme
has license
Activity
last 56 weeks