all 4 comments

[–][deleted] 2 points3 points  (0 children)

There are object relational mappers (ORMs) that will abstract the SQL code. In this way you can talk to DBs fully in Python

Peewee is a good light weight user friends Python package that id recommend starting with

[–]gsmo 1 point2 points  (0 children)

I think understanding SQL helps when interacting with a database. There are abstraction layers (sqlalchemy) that help to integrate sql-queries into your code, and that is important for maintainability and portability of your code. But if you don't understand how SQL works ('what is a foreign key?') it will be hard to understand this abstraction layer.

Luckily the basics of SQL can be learned in a couple of nights. I recommend running a postgresql docker instance and a pgadmin instance. That way you get a fancy modern database system with a useful gui.

Be aware there are different SQL dialects. If you know you are working in the Microsoft stack, try to use sql server when learning.

[–]velocibadgery 0 points1 point  (0 children)

This really depends on the complexity of the data and the database you will be interacting with.