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.
https://flightaware.github.io/speedtables/
BSD 3-Clause "New" or "Revised" License
66 stars 15 forks source link

Add a "tables" method at the CExtension level #20

Closed nugget closed 12 years ago

nugget commented 13 years ago

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.

resuna commented 13 years ago

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

lehenbauer commented 12 years ago

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