[Python] Insert a list of dictionary using sqlalchemy efficiently

Discussão em 'Python' iniciado por Stack, Abril 16, 2025.

  1. Stack

    Stack Membro Participativo

    I have a list containing dictionaries as elements. All the dictionaries confronts to my schema, is there a simple or efficient way to insert these details in db with sqlalchemy?

    my list is below

    [{id:'12',name:'a':lang:'eng},{id:'13',name:'b':lang:'eng},{id:'14',name:'c':lang:'eng}]


    and I am having a schema given below

    id String(10)
    name String(10)
    lang String(10)

    Continue reading...

Compartilhe esta Página