#2616: additional database api
-----------------------------------+----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  adrian
     Type:  enhancement            |       Status:  new   
 Priority:  normal                 |    Milestone:        
Component:  Database wrapper       |      Version:        
 Severity:  normal                 |   Resolution:        
 Keywords:                         |  
-----------------------------------+----------------------------------------
Old description:

> please add an additional key word for querysets when searching with the
> inet datatype..
> 
> and example would be
> assume a table constructed as follows.
> 
> create table network_interfaces(
> id serial,
> ip inet,
> interface char(20)
> )
> 
> --The SQL Syntax ---
> SELECT * from network_interface where ip << '10.210.0.0/16';
> 
> --possible Django syntax ---
> Interfaces.objects.filter(ip_within='10.210.0.0/16')
> 
> Thanks.  Django is a great project.

New description:

 please add an additional key word for querysets when searching with the
 inet datatype..
 
 and example would be
 assume a table constructed as follows.
 
 create table network_interfaces(
 id serial,
 ip inet,
 interface char(20)
 )
 
 --The SQL Syntax ---
 SELECT * from network_interface where ip << '10.210.0.0/16';
 
 --possible Django syntax ---
 Interfaces.objects.filter(ip_within='10.210.0.0/16')
 
 Thanks.  Django is a great project.

Comment (by jacob):

 This is a nice idea (I'd think that overloading the "in" lookup type would
 work best) here, but I'm concerned that there's not a way to do this in a
 database-agnostic manner.  Kirk, do you think you could do a quick survey
 of databases and see if it's going to be possible to do this generically?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2616>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to