Skip to main content

Module starts_with

Module starts_with 

Source

Functions§

starts_with_empty_prefix
starts_with with an empty prefix — DynamoDB rejects empty string key values.
starts_with_empty_prefix_sql
starts_with with an empty prefix on SQL — lowers to LIKE ‘%’, matches all rows.
starts_with_no_match
starts_with with a prefix that matches nothing — returns empty result.
starts_with_non_key_attr
starts_with on a non-key attribute. On DynamoDB this uses FilterExpression; on SQL it lowers to LIKE.
starts_with_optional_field
starts_with on an Option<String> field — matches non-null values with the given prefix; rows with NULL values are excluded.
starts_with_partition_key_error
starts_with on the partition key — DynamoDB returns a runtime error since starts_with is not valid in a KeyConditionExpression on the partition key.
starts_with_sort_key
starts_with on the sort key. On DynamoDB this uses KeyConditionExpression; on SQL it lowers to LIKE.
starts_with_special_chars
starts_with prefix containing SQL LIKE wildcards (%, _) and the chosen escape char (!). On SQL drivers the prefix is escaped before being lowered to LIKE so these characters match literally.