Skip to main content
GuideServerConfigure and deploy Tabsdata servers on your machine.TutorialsConfigure data integration workflows within a running Tabsdata server.API ReferenceCLI ReferenceRelease Notes
Version: 2.3.0

tdk examples scaffold

Write the skeleton of a publisher, transformer or subscriber.

The source or destination is built from the installed connector, with '<value>' placeholders for the values it needs; the function never names a connection, since the collection's connection is used on the server. Needs no server

tdk examples scaffold \
--format table \
--browse \
--wrap \
--max-width max_width-example \
--kind kind-example \
--connector connector-example \
--name quickstart \
--input input-example \
--output output-example \
--file data.csv \
--list-connectors \
--profile production
FlagTypeRequiredDescription
-o, --formattable | json | yamlOptionalOutput format. 'json' and 'yaml' give a listing as an array and table data as one object per row.
--browse, --printflagOptionalOpen the table in a viewer that scrolls both ways, or print it and return.
--wrapflagOptionalShow every value whole, wrapping long and multi-line values inside their column instead of cutting them.
--max-widthstringOptionalMaximum width of each column, in characters; longer values are cut and end in '…'. Use 0 for no limit. Defaults to the width each table sets.
--kindstringOptionalKind of function. Defaults to the kind the '--connector' binds.
--connectorstringOptionalConnector type the publisher reads or the subscriber writes, e.g. 'mysql-sql-in'. List them with '--list-connectors'.
--name, -nstringOptionalName of the Python function.
--inputstringOptionalInput table ('collection/table', or 'table' in its own collection); repeatable. Transformers and subscribers only.
--outputstringOptionalOutput table; repeatable. Publishers and transformers only.
--file, -fstringOptionalPath to write the module to; it must not exist. Printed if not given.
--list-connectorsflagOptionalList the connector types a function can bind to, and exit.
--profilestringOptionalProfile whose login and pinned project and collection this command uses; with no NAME, the default profile. Default: the profile set with 'tdk set --profile', else the default profile.