Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Alexey Malashkevich - How Pony ORM translates Python generators to SQL queries

  • EuroPython Conference
  • 2014-09-13
  • 720
Alexey Malashkevich - How Pony ORM translates Python generators to SQL queries
  • ok logo

Скачать Alexey Malashkevich - How Pony ORM translates Python generators to SQL queries бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Alexey Malashkevich - How Pony ORM translates Python generators to SQL queries или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Alexey Malashkevich - How Pony ORM translates Python generators to SQL queries бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Alexey Malashkevich - How Pony ORM translates Python generators to SQL queries

Alexey Malashkevich - How Pony ORM translates Python generators to SQL queries
[EuroPython 2014]
[24 July 2014]

Pony ORM is an Object-Relational Mapper implemented in Python. It uses an unusual approach for writing database queries using Python generators. Pony analyzes the abstract syntax tree of a generator and translates it to its SQL equivalent. The translation process consists of several non-trivial stages. In this talk one of Pony ORM authors will reveal the internal details of this process.

-----

[Pony ORM](http://ponyorm.com) is an object-relational mapper implemented in Python. It allows writing advanced queries to a database using plain Python in the form of a generator expression. This way queries look very concise.

The main feature of Pony is to provide a method to write declarative queries to databases in pure Python using generators. For this purpose Pony analyzes the abstract syntax tree of a generator and translates it to its SQL equivalent.

Following is a sample of a query in Pony:

select(p for p in Product if "iPad" in p.name and p.price >= 500)

This query translates to SQL using a specific database dialect. Currently Pony works with SQLite, MySQL, PostgreSQL and Oracle databases.

In this talk one of Pony ORM authors will go through the process of the query translation and dig into the implementation details.

Attendees are going to walk away with the understanding of:

1. Principles of building a programming language translator
2. Python to SQL translator implementation details
3. Approaches for creating a pluggable translator architecture

The presentation outline:

Why Python generators are good for representing SQL queries
Main stages of Python to SQL translation overview
Decompiling Python bytecode into Python AST
Translating Python AST to database-independent SQL representation
Generating SQL for specific database
Pluggable translator architecture
Performance concerns: is such way of building SQL slower or faster then Django's and SQLAlchemy's?

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]