Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce more features to overwrite command #290

Merged
merged 65 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
fcd0b9e
Fix some issues found by cppcheck
CobbCoding1 Nov 9, 2024
ef02b3a
add const to args
CobbCoding1 Nov 9, 2024
931b13d
format
CobbCoding1 Nov 9, 2024
20f4c02
Add --force flag, replace functionality, and remove function (unused …
CobbCoding1 Nov 11, 2024
777b5b4
Implement remove functionality and fix issue with list --A1 not worki…
CobbCoding1 Nov 12, 2024
90c4683
Implement --old-value flag
CobbCoding1 Nov 12, 2024
562ab6d
Merge with main
CobbCoding1 Nov 12, 2024
27c8cf3
format
CobbCoding1 Nov 12, 2024
2e53096
Fix issue with add
CobbCoding1 Nov 12, 2024
02e1f56
Add --old-value support in remove
CobbCoding1 Nov 12, 2024
9efbf90
Add tests for the new features
CobbCoding1 Nov 12, 2024
bdd7f21
Implement start of bulk operations. Not finished yet
CobbCoding1 Nov 13, 2024
572e3da
Fix issue with bulk-add cell length not being checked
CobbCoding1 Nov 14, 2024
3671559
Add timestamp and author support to bulk-add
CobbCoding1 Nov 14, 2024
b68c78c
Fix some issues and memory leak
CobbCoding1 Nov 14, 2024
07a2ff8
Implement bulk-remove functionality. Needs some polish and tests
CobbCoding1 Nov 14, 2024
771ac7a
Add row and start of header parsing
CobbCoding1 Nov 14, 2024
d188316
Improve bulk-add and add parsing for the header of overwrite file
CobbCoding1 Nov 14, 2024
34073d7
Add test-bulk-add and fix issue with replacement when using bulk-add
CobbCoding1 Nov 15, 2024
1fb72ab
Add test overwrite file
CobbCoding1 Nov 15, 2024
1fcdab5
Add bulk-remove test
CobbCoding1 Nov 15, 2024
c0161b5
format
CobbCoding1 Nov 15, 2024
9a4259d
Fix cppcheck issues
CobbCoding1 Nov 15, 2024
7213366
Fix issues after cppcheck and format
CobbCoding1 Nov 15, 2024
daaf8af
Fix strndup issue
CobbCoding1 Nov 15, 2024
e80cb9b
format
CobbCoding1 Nov 15, 2024
2d55e65
Add remove --all and switch to zsv_memdup
CobbCoding1 Nov 17, 2024
1f7db78
format
CobbCoding1 Nov 17, 2024
6b7d7df
Enable forein_keys and change INSERT to INSERT OR REPLACE on --force
CobbCoding1 Nov 17, 2024
bd55a9a
Remove unused functions
CobbCoding1 Nov 17, 2024
09d1995
Fix test errors
CobbCoding1 Nov 17, 2024
3e90bff
Add BEGIN transaction and COMMIT to bulk operations
CobbCoding1 Nov 17, 2024
877570c
Add rollback on fail during bulk operations
CobbCoding1 Nov 17, 2024
b7a7b0c
Update force test, updating more tests shortly
CobbCoding1 Nov 17, 2024
819ec11
Add expected file
CobbCoding1 Nov 17, 2024
c85a7d2
make bulk operations cleaner
CobbCoding1 Nov 17, 2024
dcb78fd
Remove overwrites_compare() and instead modify the sql statement
CobbCoding1 Nov 17, 2024
eb5fa51
Update tests
CobbCoding1 Nov 17, 2024
a89268b
Switch to an enum for the modes rather than individual variables
CobbCoding1 Nov 20, 2024
af03faf
Replace overwrite list to use utils/overwrite.c functions. Excel styl…
CobbCoding1 Nov 20, 2024
605dd13
Add excel-style to refactored list command WIP
CobbCoding1 Nov 20, 2024
8c4091d
Merge branch 'main' into overwrite-command
CobbCoding1 Nov 20, 2024
d5656f6
format
CobbCoding1 Nov 20, 2024
3a12400
Change sql query to use *, may need to change in the future
CobbCoding1 Nov 20, 2024
df57d26
Update check in makefile to ensure the file is removed
CobbCoding1 Nov 20, 2024
0a765f0
Fix placing issue in test
CobbCoding1 Nov 20, 2024
41e496b
Fix another test placement issue
CobbCoding1 Nov 20, 2024
30b94ce
Modify bulk operations to use utils/overwrite.h functions
CobbCoding1 Nov 21, 2024
e20ddf0
format
CobbCoding1 Nov 21, 2024
f50cff1
Fix issue with timestamp in bulk operations
CobbCoding1 Nov 21, 2024
c4b5abd
Update overwrites_free
CobbCoding1 Nov 21, 2024
69bc531
format
CobbCoding1 Nov 21, 2024
49ab29c
Add utils/overwrite_writer.h, needs a little bit more work
CobbCoding1 Nov 22, 2024
e61dba3
format
CobbCoding1 Nov 22, 2024
45ed974
Change writer to use zsv_status instead of int
CobbCoding1 Nov 22, 2024
db550e9
fix old-value test error
CobbCoding1 Nov 22, 2024
476ffe1
modify makefile
CobbCoding1 Nov 22, 2024
7d327ad
fix issue in makefile
CobbCoding1 Nov 22, 2024
b2e8a9b
Fix issue with force test as well
CobbCoding1 Nov 22, 2024
22088e6
Update functions to use zsv_status and move init into overwrite_open
CobbCoding1 Nov 23, 2024
12de367
Fix issue with main returning an error value
CobbCoding1 Nov 23, 2024
708ca02
remove redundant variable
CobbCoding1 Nov 23, 2024
a1a66ad
format
CobbCoding1 Nov 23, 2024
200a477
remove unused #includes
CobbCoding1 Nov 23, 2024
4f86b2e
Merge branch 'main' into overwrite-command
liquidaty Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ CFLAGS+= -I${PREFIX}/include
THIS_LIB_BASE=$(shell cd .. && pwd)
INCLUDE_DIR=${THIS_LIB_BASE}/include
BUILD_DIR=${THIS_LIB_BASE}/build/${BUILD_SUBDIR}/${CCBN}
UTILS1=writer file err signal mem clock arg dl string dirs prop cache jq os overwrite index
UTILS1=writer file err signal mem clock arg dl string dirs prop cache jq os overwrite index overwrite_writer

ZSV_EXTRAS ?=

Expand Down
Loading
Loading