Results for “Ownership & optional values”
Small, practical examples. Search by task or narrow things down below.
Join text rows in a chosen order
Combine values using string_agg.
string_agg✓ Tested
Keep only the most recent items
Python: Use a bounded deque to discard the oldest item as new values arrive.
Python✓ Tested
Label a volume with its purpose
Docker / Compose: Volume labels support explicit ownership and selection.
Docker / Compose✓ Tested
Load service variables from an env file
Docker / Compose: env_file supplies runtime environment values.
Docker / Compose✓ Tested
Make a pair of columns unique together
SQL: A composite primary key permits repeated individual values while forbidding a duplicate combination.
SQL✓ Tested
Make a pair of columns unique together
SQL Server: A composite primary key permits repeated individual values while forbidding a duplicate combination.
SQL Server✓ Tested
Make a pair of columns unique together
Postgres: A composite primary key permits repeated individual values while forbidding a duplicate combination.
Postgres✓ Tested
Make a pair of columns unique together
SQLite: A composite primary key permits repeated individual values while forbidding a duplicate combination.
SQLite✓ Tested
Match one value from a short list
SQL: Use IN for a set of allowed values.
SQL✓ Tested
Match one value from a short list
SQL Server: Use IN for a set of allowed values.
SQL Server✓ Tested
Match one value from a short list
Postgres: Use IN for a set of allowed values.
Postgres✓ Tested
Match one value from a short list
SQLite: Use IN for a set of allowed values.
SQLite✓ Tested