addColumnAtom: WritableAtom<null, IAddColumnOptions, Promise<void>> & WithInitialValue<null> = ...

Set function adds a column to tableSchema, to the end or by index. Also fixes any issues with column indexes, so they go from 0 to length - 1

Param

IAddColumnOptions

Example

Basic usage:

const addColumn = useSetAtom(addColumnAtom, tableScope);
addColumn({ config: {...}, index?: 0 });

Generated using TypeDoc