This is incredibly well produced and deeply informative. Thank you.
@bugbytes3923
5 ай бұрын
Thanks a lot, delighted to hear that! Cheers!
@LaichuTV
Ай бұрын
Bro thank you for creating these videos, deeply respect!
@bugbytes3923
Ай бұрын
Thanks a lot for the comments bro, cheers!
@opticonor
6 ай бұрын
Lots of value in this video, thanks!!
@bugbytes3923
6 ай бұрын
Thanks a lot!
@thierryyolepiot9951
3 ай бұрын
Can you show hoz to set up FastAPI with MySQL and PostGreSQL (especially with the async features)?
@djtoon8412
4 ай бұрын
also setting up with postgres docker and traefik .Also an additional content can be sending emails and show how to create email templates
@abdullahbutt324
Ай бұрын
In case someone got the error saying "No details". Its because u need to restart the server again. So its better that u add the keyword --reload after the uvicorn command. Then try again it will run smoothly
@bugbytes3923
Ай бұрын
Great tip for development!
@kushalpy
6 ай бұрын
Love from Nepal❤
@bugbytes3923
6 ай бұрын
Thanks a lot!
@ayushshende4290
4 ай бұрын
A video on env config and file structure for bigger projects would also be helpful
@recaseng
5 ай бұрын
Please do more on the crud operations as well as error handlings please
@tascsolutions6483
5 ай бұрын
Great content! Can you please explain why some tutorials use pydantic models(schemas) AND sql models (models)? I find this confusing and causing issues.
@matis9783
4 ай бұрын
Maybe single responsibility principle
@TOn-fx2gr
4 ай бұрын
That's how it worked in the paste but then the developer of fastapi created sqlmodel which use pydantic and sqlalchemy under the hood to make our life much easier ,i think most people in youtube are not aware that sqlmodel exist
@tejas8211
26 күн бұрын
Why did you not chose SQL Alchemy for this demonstration ?
@adhd_arti
6 ай бұрын
Best content!
@bugbytes3923
6 ай бұрын
Thanks a lot!
@Steve51791
3 ай бұрын
Why should one create subclasses and inherit from a base class? Is there a reason you shouldn't just, for example, put the primary key field in the parent class?
@catchychazz
6 ай бұрын
Is SQLModel still necessary with SQLAlchemy 2.0?
@boholsurf_2749
2 ай бұрын
great video
@bugbytes3923
2 ай бұрын
Thanks a lot!
@AmoahDevLabs
6 ай бұрын
great one.
@bugbytes3923
6 ай бұрын
Thanks as always!
@juvewan
6 ай бұрын
Endpoint functions are defined as `async def`, but the db operations inside are all sync, including the get_session depency. This is bad in a real project. async def endpoints are running in an event loop, time cosuming db operations are not awaited, so they will block the event loop.
@zoxxar
5 ай бұрын
can you give an example of changing a DB operation to support async?
@djtoon8412
6 ай бұрын
can we also get one for microservices using gRPC
@beefbox
6 ай бұрын
Hey, do you consider making an unpoly video? I feel like the library is so underrated.
@bugbytes3923
6 ай бұрын
It has been on the list for a while, yeah. I'll try and get that done soon.
@farzadmf
6 ай бұрын
Instead of converting the type to a string, you can do `from __future__ import annotations`
@darkbluewalther
Ай бұрын
I thought too, but it actually raises an error at Runtime when trying to fetch object: sqlalchemy.exc.InvalidRequestError: When initializing mapper Mapper[Shop(shop)], expression "relationship('list[Product]')" seems to be using a generic class as the argument to relationship(); please state the generic argument using an annotation, e.g. "products: Mapped[list['Product']] = relationship()"
@farzadmf
Ай бұрын
Weird 🤔
@gerrior
4 ай бұрын
Timestamp: 18:30. Even after adding `None` to the `band_id` at runtime I'm getting "pydantic_core: 1 validation error for AlbumBase" "band_id missing". I am using Progres instead of SQLite.
@fernandohtr
4 ай бұрын
I also had a problem around this video time. The error returned was not so clear. To solve the problem in my case, I had to transform the "album.release_date" from string to datetime.date. It was something more or less like this: if band_data.albums: for album in band_data.albums: raw_album_date = album.release_date.split("-") year = int(raw_album_date[0]) month = int(raw_album_date[1]) day = int(raw_album_date[2]) album_date = date(year, month, day) album_obj = Album( title=album.title, release_date=album_date, band=band ) session.add(album_obj)
@Ceddybaer
4 ай бұрын
I ran into the same issue on SQLite. I fixed it by adding "default=None" to the parameters of Field().
@thierryyolepiot9951
3 ай бұрын
@@Ceddybaer I added "default=None" to the parameters of Field() on line 23, ie band_id: int | None = Field(default=None, foreign_key="band.id") But the error still remains
@subz424
2 ай бұрын
@@Ceddybaer Nice! I like this solution, thank you 😃.
@fazlehadiazmat7g803
2 ай бұрын
dyed your hair?
@shahriarahmed9387
3 күн бұрын
raise ValueError(f"{type_} has no matching SQLAlchemy type") ValueError: has no matching SQLAlchemy type
@alexandrodisla6285
6 ай бұрын
restAPI,sqlmodel,alembic. docker .compose and metrics
@bugbytes3923
6 ай бұрын
Alembic + FastAPI + SQLModel early this week! Thanks.
Пікірлер: 48