petl-developers / petlx

Optional extensions for petl based on third party libraries.
MIT License
44 stars 9 forks source link

indexjoin #71

Open alimanfoo opened 10 years ago

alimanfoo commented 10 years ago

In the petlx.index module add an indexjoin() function which takes a table, an index directory containing a prepopulated index, and a field name from the table whose values contain the queries, then iterates over rows from the table making an index query for each row, and joins each row with the results from the index.