CrateDB 4.5.0 added the gen_random_text_uuid() scalar function, which can also be used within an SQL DDL statement, in order to automatically assign random identifiers to newly inserted records on the server side. In this spirit, it is suitable to be used as a PRIMARY KEY constraint for SQLAlchemy.
This patch adds a corresponding documentation section how to use it with SQLAlchemy.
About
CrateDB 4.5.0 added the
gen_random_text_uuid()
scalar function, which can also be used within an SQL DDL statement, in order to automatically assign random identifiers to newly inserted records on the server side. In this spirit, it is suitable to be used as aPRIMARY KEY
constraint for SQLAlchemy.This patch adds a corresponding documentation section how to use it with SQLAlchemy.
References
/cc @surister