Results for “fields”
Small, practical examples. Search by task or narrow things down below.
Read an ISO week year and week number
Java: Use ISO week fields together because a week can belong to the previous calendar year.
Java✓ Tested
Read rows from CSV text
Parse CSV into objects with named properties.
CSV✓ Tested
Require a value with NOT NULL
SQL: Declare required fields at the database boundary, not only in application validation.
SQL✓ Tested
Require a value with NOT NULL
SQL Server: Declare required fields at the database boundary, not only in application validation.
SQL Server✓ Tested
Require a value with NOT NULL
Postgres: Declare required fields at the database boundary, not only in application validation.
Postgres✓ Tested
Require a value with NOT NULL
SQLite: Declare required fields at the database boundary, not only in application validation.
SQLite✓ Tested
Return a small immutable named record
Python: Use NamedTuple when callers need both tuple behavior and named fields.
Python✓ Tested
Select object properties
Create a smaller object with only the fields you need.
Select-Object✓ Tested
Select specific columns
Read only the fields a result needs.
SELECT✓ Tested
Type an object update with Partial
Allow a caller to provide just the fields to change.
Partial✓ Tested