CGI-FR / CGI-FR/LINO

[Proposal]push delete on conditionnal clause

Open
#174 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
23
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Hi,
We have need to purge some data in a given table according to a condition (where MyData>9999).

Currently, we can do that with
```console
$ lino pull --table MyTable --where 'MyData>9999' MyAliasDB | lino push delete --table MyTable MyAliasDB
```
Ideally we would have

```console
$ lino push delete --table MyTable --where 'MyData>9999' MyAliasDB
```
lino push delete with conditionnal must ignore input data
Thanks

Contributor guide

Open the contributing guide

Research direction

Start by tracing the `lino push delete` command and its existing handling of the `--table` argument. Check how conditional input is currently processed, then implement the requested `--where 'MyData>9999'` form so it ignores piped input and deletes matching rows; verify the command against a representative table.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.