django-clickhouse-backend icon indicating copy to clipboard operation
django-clickhouse-backend copied to clipboard

[BUG]

Open PavelIgin opened this issue 1 year ago • 2 comments

clickhouse dont use ID how i can create django model without ID?

PavelIgin avatar Apr 28 '24 12:04 PavelIgin

I got the same issue too, when I use this backend with an exists clickhouse table, it got: DB::Exception: There's no column id issue, in fact, all I want is query, I don't need auto create table or update operations.

ananan avatar May 11 '24 09:05 ananan

Django always add an id field to model if you don't specify a primary key. To avoid this issue, just choose a field and add primary_key=True

jayvynl avatar May 12 '24 08:05 jayvynl