flightaware / speedtables

Speed tables is a high-performance memory-resident database. The speed table compiler reads a table definition and generates a set of C access routines to create, manipulate and search tables containing millions of rows. Currently oriented towards Tcl.

Home Page:https://flightaware.github.io/speedtables/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a "tables" method at the CExtension level

nugget opened this issue · comments

Alongside the "builder_version" and "definition" methods, it would be nice to have a "tables" method which allowed code to programmatically inspect the tablespace defined for a particular speedtable C extension. I envision this working in a manner similar to the existing "fields" method which is available for each table in the extension.

Something that just returns a Tcl list of table names would be really useful.

That sounds like a really good idea and should be super-easy to implement.

Added in commit ba1fa01, the "tables" method sits alongside "builder_version" and "definition" and will return a list of all of the tables defined by the extension.