Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41688 > unrolled thread
| Started by | roy@panix.com (Roy Smith) |
|---|---|
| First post | 2013-03-22 12:01 -0400 |
| Last post | 2013-03-22 16:09 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
MySQL database schema discovery roy@panix.com (Roy Smith) - 2013-03-22 12:01 -0400
Re: MySQL database schema discovery Tim Golden <mail@timgolden.me.uk> - 2013-03-22 16:09 +0000
| From | roy@panix.com (Roy Smith) |
|---|---|
| Date | 2013-03-22 12:01 -0400 |
| Subject | MySQL database schema discovery |
| Message-ID | <kihv84$i03$1@panix2.panix.com> |
What are my options for MySQL schema discovery? I want to be able to find all the tables in a database, and discover the names and types of each column (i.e. the standard schema discovery stuff). PEP 249 doesn't seem to have any discovery methods. Nor does MySQLdb appear to have any non-standard extentions for this. I could probably do this with SQLAlchemy, but I'm trying to avoid that because it's so heavyweight. Is there anything else I should be considering?
[toc] | [next] | [standalone]
| From | Tim Golden <mail@timgolden.me.uk> |
|---|---|
| Date | 2013-03-22 16:09 +0000 |
| Message-ID | <mailman.3611.1363968628.2939.python-list@python.org> |
| In reply to | #41688 |
On 22/03/2013 16:01, Roy Smith wrote: > What are my options for MySQL schema discovery? I want to be able to > find all the tables in a database, and discover the names and types of > each column (i.e. the standard schema discovery stuff). > > PEP 249 doesn't seem to have any discovery methods. Nor does MySQLdb > appear to have any non-standard extentions for this. I could probably > do this with SQLAlchemy, but I'm trying to avoid that because it's so > heavyweight. > MySQL appears to support the standard(ish) INFORMATION_SCHEMA schema: http://dev.mysql.com/doc/refman/5.0/en/information-schema.html TJG
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web