Re: [sqlalchemy] sqlalchemy returns None for sqlite tables which already have data

2023-05-22 Thread Mike Bayer
like someone mentioned there, showing the classes doesn't say much.I'd check that the table name is correct and definitely matches what's in the SQLite database that you are actually accessing, as well as that the primary key column in those tables is actually a primary key, or at least not

[sqlalchemy] sqlalchemy returns None for sqlite tables which already have data

2023-05-22 Thread m7mđ ĕğý
Hello mates, As my last msg had a so bad format i will keep the link of my original question on stackoverflow : https://stackoverflow.com/questions/76304295/sqlalchemy-returns-none-for-sqlite-tables-which-already-have-data i hope i get answers from you mates. Thanks -- SQLAlchemy -

[sqlalchemy] sqlalchemy returns None for sqlite tables which already have data

2023-05-22 Thread m7mđ ĕğý
there is something wrong with those two sqlite tables: select method returns none but the table already have data. is that because product class is Primary key and a foreign key at the same time? - i use sqlalchemy - those two tables returns none every time i try to query them. -