[{"data":1,"prerenderedAt":578},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fdatabase-explorer\u002Fediting-data":3},{"id":4,"title":5,"body":6,"description":569,"extension":570,"meta":571,"navigation":572,"path":573,"redirect":574,"seo":575,"stem":576,"__hash__":577},"docs\u002Fdocs\u002Fdatabase-explorer\u002Fediting-data.md","Editing Data",{"type":7,"value":8,"toc":552},"minimark",[9,13,22,28,33,36,77,82,95,100,105,109,112,176,186,190,220,223,227,256,259,264,277,281,297,300,304,315,342,356,360,372,383,387,392,399,403,515,526,534,538],[10,11,5],"h1",{"id":12},"editing-data",[14,15,16,17,21],"p",{},"Data Explorer supports inline data editing for compatible sources. Changes are ",[18,19,20],"strong",{},"staged locally"," and only committed when you save — so you can review, undo, and adjust before anything is written.",[23,24],"themed-image",{"alt":25,"dark":26,"light":27},"Data grid with inline editing controls — Add row, Delete, Review, Save, and Cancel","\u002Fimages\u002Ffeatures\u002Fv2-explorer-dark.png","\u002Fimages\u002Ffeatures\u002Fv2-explorer-light.png",[29,30,32],"h2",{"id":31},"editable-vs-read-only","Editable vs. Read-only",[14,34,35],{},"The breadcrumb header shows the current state:",[37,38,39,52],"table",{},[40,41,42],"thead",{},[43,44,45,49],"tr",{},[46,47,48],"th",{},"Badge",[46,50,51],{},"Meaning",[53,54,55,66],"tbody",{},[43,56,57,63],{},[58,59,60],"td",{},[18,61,62],{},"Editable",[58,64,65],{},"Inline insert, edit, and delete are available",[43,67,68,74],{},[58,69,70,73],{},[18,71,72],{},"Read-only"," (amber lock)",[58,75,76],{},"Modifications are not supported for this source",[14,78,79],{},[18,80,81],{},"Editable sources:",[83,84,85,89,92],"ul",{},[86,87,88],"li",{},"Database tables (with or without a primary key)",[86,90,91],{},"Database views",[86,93,94],{},"Individual files (CSV, JSON, Parquet)",[14,96,97],{},[18,98,99],{},"Read-only sources:",[83,101,102],{},[86,103,104],{},"Table groups (folders containing multiple part files) — select an individual file within the group to edit it",[29,106,108],{"id":107},"toolbar","Toolbar",[14,110,111],{},"When an editable source is open, the toolbar provides these actions:",[37,113,114,124],{},[40,115,116],{},[43,117,118,121],{},[46,119,120],{},"Button",[46,122,123],{},"Action",[53,125,126,136,146,156,166],{},[43,127,128,133],{},[58,129,130],{},[18,131,132],{},"+ Add row",[58,134,135],{},"Opens a form to stage a new row for insert",[43,137,138,143],{},[58,139,140],{},[18,141,142],{},"Delete",[58,144,145],{},"Stages selected rows for deletion",[43,147,148,153],{},[58,149,150],{},[18,151,152],{},"N selected",[58,154,155],{},"Shows how many rows are currently selected",[43,157,158,163],{},[58,159,160],{},[18,161,162],{},"Save (N)",[58,164,165],{},"Commits all staged changes to the database \u002F file",[43,167,168,173],{},[58,169,170],{},[18,171,172],{},"Cancel",[58,174,175],{},"Discards all staged changes without saving",[14,177,178,179,182,183,185],{},"The ",[18,180,181],{},"Save"," and ",[18,184,172],{}," buttons only appear when there are staged changes.",[29,187,189],{"id":188},"inserting-rows","Inserting Rows",[191,192,193,207,210],"ol",{},[86,194,195,196,198,199,202,203,206],{},"Click ",[18,197,132],{}," in the toolbar, or press ",[18,200,201],{},"Ctrl+I"," (",[18,204,205],{},"⌘+I",").",[86,208,209],{},"Fill in the column values in the panel that opens.",[86,211,195,212,215,216,219],{},[18,213,214],{},"Insert"," to stage the row, or ",[18,217,218],{},"Insert & add another"," to continue adding rows.",[14,221,222],{},"The new row appears in the grid highlighted in green. It is not yet written to the database — it remains staged until you save.",[29,224,226],{"id":225},"editing-cells","Editing Cells",[191,228,229,239,242],{},[86,230,231,234,235,238],{},[18,232,233],{},"Double-click"," any cell in an editable table, or navigate to it with arrow keys and press ",[18,236,237],{},"Enter",".",[86,240,241],{},"Type the new value.",[86,243,244,245,247,248,251,252,255],{},"Press ",[18,246,237],{}," to confirm, ",[18,249,250],{},"Tab"," to confirm and move to the next cell, or ",[18,253,254],{},"Escape"," to cancel without staging.",[14,257,258],{},"Edited cells are highlighted so you can see at a glance what has changed. Hovering over an edited cell shows a tooltip with the old and new value.",[260,261,263],"h3",{"id":262},"undoing-a-cell-edit","Undoing a cell edit",[14,265,244,266,202,269,272,273,276],{},[18,267,268],{},"Ctrl+Z",[18,270,271],{},"⌘+Z",") to revert the most recent cell edit. Each press reverts one edit in reverse order. You can also right-click a changed cell and choose ",[18,274,275],{},"Revert cell"," from the context menu.",[29,278,280],{"id":279},"deleting-rows","Deleting Rows",[191,282,283,289],{},[86,284,285,288],{},[18,286,287],{},"Select"," one or more rows (click, Shift+Click, or Ctrl+A).",[86,290,244,291,293,294,238],{},[18,292,142],{},", or right-click and choose ",[18,295,296],{},"Delete selected rows",[14,298,299],{},"Deleted rows are visually struck through in the grid. They remain staged — not yet removed from the database — until you save.",[29,301,303],{"id":302},"reviewing-staged-changes","Reviewing Staged Changes",[14,305,306,307,310,311,314],{},"Click the ",[18,308,309],{},"review"," button (panel icon next to Save) to open the ",[18,312,313],{},"Pending Changes"," drawer. It shows:",[83,316,317,324,327,330,336],{},[86,318,319,320],{},"A summary: ",[321,322,323],"code",{},"N inserts • N updates • N deletes",[86,325,326],{},"Tabs to filter by type: All \u002F Inserts \u002F Updates \u002F Deletes",[86,328,329],{},"Per-row detail: old → new values for each changed field",[86,331,332,335],{},[18,333,334],{},"Undo"," button on each row to revert that single change",[86,337,338,341],{},[18,339,340],{},"Undo all"," to revert all changes of a given type",[14,343,344,347,348,351,352,355],{},[18,345,346],{},"Keyboard shortcut:"," Press ",[18,349,350],{},"Ctrl+Enter"," (or ",[18,353,354],{},"⌘+Enter",") while the drawer is open to apply all changes immediately.",[29,357,359],{"id":358},"saving-changes","Saving Changes",[14,361,244,362,202,365,368,369,371],{},[18,363,364],{},"Ctrl+S",[18,366,367],{},"⌘+S",") or click ",[18,370,181],{}," in the toolbar to write all staged changes to the database or file.",[83,373,374,377,380],{},[86,375,376],{},"A progress indicator appears while the write is in progress.",[86,378,379],{},"On success, the grid refreshes automatically to show the committed data.",[86,381,382],{},"If an error occurs, the staged changes are preserved so you can correct and retry.",[29,384,386],{"id":385},"discarding-changes","Discarding Changes",[14,388,195,389,391],{},[18,390,172],{}," in the toolbar to discard all staged changes without saving. For larger change sets (more than 3 rows), a confirmation prompt is shown.",[14,393,394,395,398],{},"You can also discard changes by type using the dropdown arrow next to ",[18,396,397],{},"Discard all"," in the pending-changes drawer footer.",[29,400,402],{"id":401},"keyboard-shortcuts","Keyboard Shortcuts",[37,404,405,414],{},[40,406,407],{},[43,408,409,412],{},[46,410,411],{},"Shortcut",[46,413,123],{},[53,415,416,425,434,444,457,470,479,488,497,506],{},[43,417,418,422],{},[58,419,420],{},[321,421,237],{},[58,423,424],{},"Edit focused cell",[43,426,427,431],{},[58,428,429],{},[321,430,254],{},[58,432,433],{},"Cancel edit \u002F Deselect all",[43,435,436,441],{},[58,437,438],{},[321,439,440],{},"Arrow keys",[58,442,443],{},"Navigate between cells",[43,445,446,454],{},[58,447,448,450,451],{},[321,449,250],{}," \u002F ",[321,452,453],{},"Shift+Tab",[58,455,456],{},"Next \u002F previous cell",[43,458,459,467],{},[58,460,461,450,464],{},[321,462,463],{},"Page Up",[321,465,466],{},"Page Down",[58,468,469],{},"Scroll by page",[43,471,472,476],{},[58,473,474],{},[321,475,201],{},[58,477,478],{},"Add new row",[43,480,481,485],{},[58,482,483],{},[321,484,364],{},[58,486,487],{},"Save all staged changes",[43,489,490,494],{},[58,491,492],{},[321,493,268],{},[58,495,496],{},"Undo last cell edit",[43,498,499,503],{},[58,500,501],{},[321,502,350],{},[58,504,505],{},"Apply changes (in review drawer)",[43,507,508,512],{},[58,509,510],{},[321,511,142],{},[58,513,514],{},"Stage selected rows for deletion",[14,516,517,518,521,522,525],{},"On macOS, substitute ",[18,519,520],{},"⌘"," for ",[18,523,524],{},"Ctrl"," in all shortcuts.",[14,527,528,529,238],{},"For row selection, copying, and the full context menu reference, see ",[530,531,533],"a",{"href":532},".\u002Fviewing-data","Viewing Data",[29,535,537],{"id":536},"related-docs","Related docs",[83,539,540,545],{},[86,541,542,544],{},[530,543,533],{"href":532}," — Data grid, sorting, filtering, export",[86,546,547,551],{},[530,548,550],{"href":549},".\u002Ftable-structure","Examining Table Structure"," — Columns, keys, indexes, DDL",{"title":553,"searchDepth":554,"depth":554,"links":555},"",2,[556,557,558,559,563,564,565,566,567,568],{"id":31,"depth":554,"text":32},{"id":107,"depth":554,"text":108},{"id":188,"depth":554,"text":189},{"id":225,"depth":554,"text":226,"children":560},[561],{"id":262,"depth":562,"text":263},3,{"id":279,"depth":554,"text":280},{"id":302,"depth":554,"text":303},{"id":358,"depth":554,"text":359},{"id":385,"depth":554,"text":386},{"id":401,"depth":554,"text":402},{"id":536,"depth":554,"text":537},"Insert, edit, and delete rows with staged changes and review in Data Explorer.","md",{},false,"\u002Fdocs\u002Fdatabase-explorer\u002Fediting-data",null,{"title":5,"description":569},"docs\u002Fdatabase-explorer\u002Fediting-data","ZmAaOK8rtcbifVmuA7hX9s8NNk-aMXiioRmin1Cj4xw",1783896284393]