For the last few years, I’ve believed that there was no way to get the column names of tables using the db interface. Today I discovered that—using both postgresql and sqlite3, at least—I can extract these from the “name” fields of the “headers” field of the row-response to a “SELECT * FROM table_name LIMIT 0;”. The documentation suggests that these header fields are fragile and undocumented… but it would be nice to have known that it was there. Would it make sense to add a library function that returns column name information if it’s available, or at least add some sample code to the documentation?
John -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.