Download enum_query.sql from caroocortes/wikidata-changes: direct link, hf CLI and curl.
- Browser
- Download file 740 Bytes
-
https://huggingface.co/datasets/caroocortes/wikidata-changes/resolve/main/enum_query.sql
- Command line
-
hf download hf://datasets/caroocortes/wikidata-changes/enum_query.sql
-
curl -L -o enum_query.sql https://huggingface.co/datasets/caroocortes/wikidata-changes/resolve/main/enum_query.sql
740 Bytes
| DO $$ | |
| BEGIN | |
| IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'action_enum') THEN | |
| CREATE TYPE action_enum AS ENUM ('CREATE', 'UPDATE', 'DELETE'); | |
| END IF; | |
| END$$; | |
| DO $$ | |
| BEGIN | |
| IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'datatype_enum') THEN | |
| CREATE TYPE datatype_enum AS ENUM ('string', 'external-id', 'url', 'commonsMedia', 'geo-shape', 'tabular-data', 'math', 'musical-notation', 'wikibase-item', 'wikibase-entityid', 'wikibase-property', 'wikibase-lexeme', 'wikibase-sense', 'wikibase-form', 'entity-schema', 'monolingualtext', 'globecoordinate', 'quantity', 'time', 'bad', 'unknown-values'); | |
| END IF; | |
| END$$; |