FIND YOUR NEXT FEW LINES

Results for “Functions & data types”

Small, practical examples. Search by task or narrow things down below.

787 snippets foundClear filters
GitCommit history & revision selection

Read a complete commit message

Git: The B placeholder includes the subject and body without extra metadata.

Git✓ Tested
C#Data & dates

Read a JSON property

Parse a JSON document and dispose it after reading in C#.

C#✓ Tested
PostgresJSON & arrays

Read a JSONB field as text

Extract a nested value from a JSON document.

jsonb✓ Tested
SQLSubqueries & ranked selection

Read a page after a known unique key

SQL: A keyset predicate avoids scanning and discarding an increasing offset on a suitable index.

SQL✓ Tested
SQL ServerSubqueries & ranked selection

Read a page after a known unique key

SQL Server: A keyset predicate avoids scanning and discarding an increasing offset on a suitable index.

SQL Server✓ Tested
PostgresSubqueries & ranked selection

Read a page after a known unique key

Postgres: A keyset predicate avoids scanning and discarding an increasing offset on a suitable index.

Postgres✓ Tested
SQLiteSubqueries & ranked selection

Read a page after a known unique key

SQLite: A keyset predicate avoids scanning and discarding an increasing offset on a suitable index.

SQLite✓ Tested
TypeScriptUtilities & async

Read a property with keyof

Keep the key and returned value tied to an object type.

keyof✓ Tested
SQL ServerJSON & results

Read a scalar JSON property

Extract a named value using a JSON path.

JSON_VALUE✓ Tested
PythonFile operations & archives

Read compressed text directly

Python: Open gzip data in text mode with an explicit encoding.

Python✓ Tested
PowerShellStructured formats & encodings

Read JSON into a hashtable

PowerShell: AsHashtable produces dictionary-style results for keys that are data rather than fixed property names.

PowerShell✓ Tested
SQLGetting Started

Read named columns from a table

SQL: Choose the columns needed and request a deterministic row order.

SQL✓ Tested