stor delete

For database.

Delete a table or specified rows in the in-memory sqlite database.

Command Type

built-in

Signature

> stor delete {flags}

Flags

  • --table-name, -t {string}: Name of the table you want to delete or delete from.
  • --where-clause, -w {string}: A sql string to use as a where clause without the WHERE keyword.

Input/output types:

input output
nothing table

Examples

Delete a table from the in-memory sqlite database

> stor delete --table-name nudb

Delete some rows from the in-memory sqlite database with a where clause

> stor delete --table-name nudb --where-clause "int1 == 5"

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.