Skip to content
Discussion options

You must be logged in to vote

Yes you're right, it crashed on psql. And I tried without sqlmodel with sync and async mode, with different drivers including psycopg, psycopg2, pg8000 and asyncpg, it crashed on every situation. So it can be concluded that this issue has no relationship with sqlmodel. I guess perhaps something different between psql and sqlite leads to this issue, but I have no idea to validate it.

Anyway, I suggest you not to explicitly specify the value of id. But if you must do that, you can open an issue on sqlalchemy and ask for some suggestions there.

Below is my sqlalchemy code:

import argparse
import asyncio
from typing import Optional

from sqlalchemy import String, create_engine
from sqlalchemy.e…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@meschac38700
Comment options

@meschac38700
Comment options

@monchin
Comment options

@monchin
Comment options

Answer selected by YuriiMotov
@meschac38700
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
3 participants