Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
  • Categories

    • Bits
    • Bytes
    • Chart
    • Conversions
    • Core
    • Database
    • Dataframe
    • Dataframe Or Lazyframe
    • Date
    • Debug
    • Default
    • Env
    • Experimental
    • Expression
    • Filesystem
    • Filters
    • Formats
    • Generators
    • Hash
    • History
    • Lazyframe
    • Math
    • Misc
    • Network
    • Path
    • Platform
    • Plugin
    • Prompt
    • Random
    • Removed
    • Shells
    • Strings
    • System
    • Viewers

stor update for database

Update information in a specified table in the in-memory sqlite database.

Signature

> stor update {flags}

Flags

  • --table-name, -t {string}: name of the table you want to insert into
  • --update-record, -u {record}: a record of column names and column values to update in the specified table
  • --where-clause, -w {string}: a sql string to use as a where clause without the WHERE keyword

Input/output types:

inputoutput
nothingtable
recordtable
anytable

Examples

Update the in-memory sqlite database

> stor update --table-name nudb --update-record {str1: nushell datetime1: 2020-04-17}

Update the in-memory sqlite database with a where clause

> stor update --table-name nudb --update-record {str1: nushell datetime1: 2020-04-17} --where-clause "bool1 = 1"

Update the in-memory sqlite database through pipeline input

> {str1: nushell datetime1: 2020-04-17} | stor update --table-name nudb