scripts/add_thesaurus_constraints.py¶
Overview¶
This file contains 4 documented elements.
Functions¶
add_constraints_sqlite(db_path)¶
Add unique constraints to SQLite database.
Parameters:
- db_path
add_constraints_postgres(host, port, dbname, user, password)¶
Add unique constraints to PostgreSQL database.
Parameters:
- host
- port
- dbname
- user
- password
main()¶
Main function to add constraints based on user choice.