Skip to main content

Clear table

Clears the database table

Function ClearTable(Val Table, Val Connection = "") Export

ParameterCLI optionTypeRequiredDescription
Table--tableStringTable name
Connection--dbString, ArbitraryExisting connection or database path

Returns: Map Of KeyAndValue - Result of query execution


1C:Enterprise/OneScript code example
    Base  = "C:\Users\bayse\AppData\Local\Temp\v8_2968_1e2.sqlite";
Table = "test";

Result = OPI_SQLite.ClearTable(Table, Base);
    oint sqlite ClearTable \
--table "test" \
--db "/tmp/1h5u01yu.rt1.sqlite"
Result
{
"result": true
}