Timeline for How to get the actual number of inserted rows when writing to a table in a DolphinDB plugin function?
Current License: CC BY-SA 4.0
Post Revisions
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 18 at 1:12 | answer | added | Shiv Sharma | timeline score: 3 | |
| Mar 17 at 16:01 | comment | added | Ted Lyngmo |
append! returns a DolphinDB VOID. Either use tableInsert instead or count the number of rows before append! and after: auto before = destTable->rows(); appendFunc->call(heap, appendArgs); auto after = destTable->rows(); auto inserted = after - before;. Can't test to verify myself though.
|
|
| Mar 17 at 15:36 | history | asked | Shiv Sharma | CC BY-SA 4.0 |