Open simonw opened 10 months ago
Part of:
By default, uses id as primary key if that column exists. But you can also configure the primary key in a file called tablename.config.json or tablename.config.yaml (or .yml) which specifies pk: name-of-column.
id
tablename.config.json
tablename.config.yaml
.yml
pk: name-of-column
I implemented the first version of id guessing here: https://github.com/datasette/datasette-build/blob/bb6a4ef885c1fa3c6c9bafae140974293462758f/datasette_build/cli.py#L33-L39
Part of:
1
By default, uses
id
as primary key if that column exists. But you can also configure the primary key in a file calledtablename.config.json
ortablename.config.yaml
(or.yml
) which specifiespk: name-of-column
.