Make SQL Queries Secure in Python

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • Today we learn how to design secure SQL queries in Python when working with SQLite3.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine...
    💻 The Algorithm Bible Book: www.neuralnine...
    👕 Programming Merch: www.neuralnine...
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine...
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/Neu...
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/

Комментарии • 22

  • @FreihEitner
    @FreihEitner 8 месяцев назад +1

    Thank you! I had always read one should use prepared statements because they are more secure but I never saw HOW they were more secure explained so neatly.

  • @Luc1an_
    @Luc1an_ 2 года назад +12

    Hello, can you make a tutorial on how to make async Api calls in background using any web framework of Python?

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 2 года назад +1

    I prefer to use APSW rather than the standard SQLite3 module that comes with Python. Also, here is a handy generator function I like to use, that performs a query and lets you iterate over the returned rows, putting them through an optional mapping function (e.g. turning the row tuple into a dict mapping field names to values) before returning them:
    def db_iter(conn, cmd, values = None, mapfn = lambda x : x) :
    for item in conn.cursor().execute(cmd, values) :
    yield mapfn(item)
    ♯end for
    ♯end db_iter

  • @alexzakr
    @alexzakr 5 месяцев назад

    Thanks for the simple explanation! It's really valuable!

  • @mehmetaliertorer5819
    @mehmetaliertorer5819 2 года назад +4

    Can you do a video about password authentication from the database but with hash encryptions

  • @HideBuz
    @HideBuz 5 месяцев назад

    Your content is always top notch! Thanks!

  • @Mullheimer
    @Mullheimer Год назад

    Wow, crazy speed and well explained. Thx

  • @RuneFToftlund
    @RuneFToftlund 5 месяцев назад

    great, excellent video. Maybe just slow down when executing and swapping window. Otherwise great.

  • @jeekakrishna
    @jeekakrishna 2 года назад

    it is so usefull for me...i was beggining to learn this database and python connection....Can you direct me some free database hosting solutions for begginers and how to use them ?

  • @Trazynn
    @Trazynn 2 года назад

    I'd love more windows file handling tutorials. Your file renamer was ace.

    • @Trazynn
      @Trazynn 2 года назад

      Maybe constructing pdf's in bulk but with dynamic content, like giving people a certificate with their name and their score in it or something.

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 2 года назад

      The Cairo graphics library lets you render graphics calls to different kinds of target surfaces, including PDF, SVG and PostScript files.

  • @ayushpurohit8266
    @ayushpurohit8266 Год назад

    Does it work for python/mysql connector? Also, how is this different from f-string or .format()?

  • @walkaisa9933
    @walkaisa9933 9 месяцев назад

    What’s the name of the sql syntax highlighting extension?

  • @vivekan97
    @vivekan97 2 года назад

    Great content 💯

  • @Redknightsilverdragon
    @Redknightsilverdragon Год назад

    Thank you

  • @piotrmazgaj
    @piotrmazgaj 2 года назад

    Hi, I have a similar problem but it concerns the tables' name. I need to create many, many tables (each table for separate stock data and stock name is a table name). How can I put into my SQL query table name as variable, but without breaching the sanitation rule?

    • @jimmynoosetron6518
      @jimmynoosetron6518 2 года назад

      Do the thing where you

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 2 года назад +1

      That’s a, shall we say, suboptimal way to do it. Given that the structure of the data is the same for all stocks, have just one table, and add the stock ID as a column to the table.

  • @mahmoodjamshidian9525
    @mahmoodjamshidian9525 2 года назад

    It was interesting

  • @codewithrohit2927
    @codewithrohit2927 2 года назад

    Hi

  • @link6563
    @link6563 2 года назад

    TEACH ME HOW TO BE A l33t h4x0rs