Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45692

Re: More general way of generating PyODBC queries as a dict?

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: More general way of generating PyODBC queries as a dict?
Date 2013-05-21 19:33 -0400
Organization > Bestiaria Support Staff <
References <0f78102c-2e30-4858-ae62-b8d5cecfc345@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.1942.1369179204.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, 21 May 2013 10:27:07 -0700 (PDT), stackoverflowuser95@gmail.com
declaimed the following in gmane.comp.python.general:

> 
> For example, when multiple tables are queried; some hackish lambdas are required to generate the resulting dictionary.
> 
> Can you think of some more general methods?
>
	What about using the information from 

		cursor.description

You did state PyODBC, did you not?

"""
description

This read-only attribute is a list of 7-item tuples, each containing
(name, type_code, display_size, internal_size, precision, scale,
null_ok). pyodbc only provides values for name, type_code,
internal_size, and null_ok. The other values are set to None.  
"""
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

More general way of generating PyODBC queries as a dict? stackoverflowuser95@gmail.com - 2013-05-21 10:27 -0700
  Re: More general way of generating PyODBC queries as a dict? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-21 19:33 -0400
  Re: More general way of generating PyODBC queries as a dict? stackoverflowuser95@gmail.com - 2013-05-22 02:31 -0700

csiph-web