On Aug 3, 2013, at 12:34 PM, Taba Taba <betak...@gmail.com> wrote:

> Hi all,
> 
> I switch from php to python I'm using Codeigniter Query Builder:
> 
> $this->db->select('*');
> $this->db->from('blogs');
> $this->db->join('comments', 'comments.id = blogs.id');
> $this->db->limit(10, 20);
> $query = $this->db->get();
> 
> // Produces: 
> // SELECT * FROM blogs
> // JOIN comments ON comments.id = blogs.id
> // LIMIT 20, 10
> 
> I need model name in string ('blog') not class name (Blog).
> 
> How can i do it with SQLAlchemy?

try reading the SQL Expression tutorial: 
http://docs.sqlalchemy.org/en/rel_0_8/core/tutorial.html


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to