Skip to content

Bulk functions in the Inflector DuckDB extension

Function category

Bulk

1 function

Apply a transform to every key in a struct or every column name in a query result, in a single call. The headline feature for normalizing API responses or migrating between naming conventions.

inflect

Scalar function Bulk
Signature
4 overloaded forms · click to inspect
Arguments (Positional)
Argument format Type VARCHAR Mode Positional Description
Argument text Type VARCHAR Mode Positional Description
Description
1 Rewrite struct keys
SELECT inflect('snake', {'firstName':'John','lastName':'Doe'});
2 Rewrite every column of a query
SELECT * FROM inflect('kebab', (FROM read_csv('data.csv')));