Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws-samples/aws-dynamodb-examples
/ functions
Functions
2,858 in github.com/aws-samples/aws-dynamodb-examples
⨍
Functions
2,858
◇
Types & classes
598
↳
Endpoints
15
↓ 5 callers
Function
isDynamoDBAvailable
()
workshops/modernizer/backend/src/test-configs/integration-setup.ts:58
↓ 5 callers
Method
isErrorSecurityRelated
(error: Error)
workshops/modernizer/clean-start/frontend/src/services/errorService.ts:442
↓ 5 callers
Method
isErrorSecurityRelated
(error: Error)
workshops/modernizer/frontend/src/services/errorService.ts:442
↓ 5 callers
Method
logToConsole
(level: LogLevel, message: string, data?: any, error?: Error)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:54
↓ 5 callers
Method
logToConsole
(level: LogLevel, message: string, data?: any, error?: Error)
workshops/modernizer/frontend/src/services/logger.ts:54
↓ 5 callers
Function
toCategoryResponse
(category: Category)
workshops/modernizer/clean-start/backend/src/models/Category.ts:40
↓ 5 callers
Function
toCategoryResponse
(category: Category)
workshops/modernizer/backend/src/models/Category.ts:48
↓ 5 callers
Function
toProductResponse
(product: ProductWithDetails)
workshops/modernizer/clean-start/backend/src/models/Product.ts:80
↓ 5 callers
Function
toProductResponse
(product: ProductWithDetails)
workshops/modernizer/backend/src/models/Product.ts:80
↓ 5 callers
Function
toUserResponse
(user: User)
workshops/modernizer/clean-start/backend/src/models/User.ts:49
↓ 5 callers
Function
toUserResponse
(user: User)
workshops/modernizer/backend/src/models/User.ts:51
↓ 5 callers
Method
updateUserProfile
(userId: number, updateData: UpdateUserRequest)
workshops/modernizer/clean-start/backend/src/services/AuthService.ts:104
↓ 5 callers
Method
updateUserProfile
(userId: number, updateData: UpdateUserRequest)
workshops/modernizer/backend/src/services/AuthService.ts:107
↓ 5 callers
Function
useCart
()
workshops/modernizer/clean-start/frontend/src/contexts/CartContext.tsx:35
↓ 5 callers
Function
useCart
()
workshops/modernizer/frontend/src/contexts/CartContext.tsx:35
↓ 4 callers
Method
_create_batches
Split records into batches. Args: records: List of records Returns: List of batches, where each batch is a l
scripts/dynamodb-local-bulk-loader/src/threaded_loader.py:211
↓ 4 callers
Method
_read_csv
Read CSV file and return list of records. Args: csv_file: Path to CSV file Returns: List of dictionaries rep
scripts/dynamodb-local-bulk-loader/src/async_loader.py:198
↓ 4 callers
Method
_write_batch
Write a batch of items to DynamoDB with retry logic. Uses the retry handler to implement exponential backoff with jitter. This handle
scripts/dynamodb-local-bulk-loader/src/async_loader.py:229
↓ 4 callers
Method
build
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithQueries/QueryWithSortKey.java:170
↓ 4 callers
Method
build
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithItems/DeleteItemConditional.java:169
↓ 4 callers
Method
build
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithItems/BatchWriteItem.java:227
↓ 4 callers
Method
build
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithItems/BatchGetItem.java:196
↓ 4 callers
Method
build
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithItems/UpdateItemConditional.java:193
↓ 4 callers
Method
calculateOrderTotal
(items: { quantity: number; price_at_time: number }[])
workshops/modernizer/clean-start/backend/src/models/Order.ts:139
↓ 4 callers
Method
calculateOrderTotal
(items: { quantity: number; price_at_time: number }[])
workshops/modernizer/backend/src/models/Order.ts:139
↓ 4 callers
Method
calculate_delay
Calculate delay with exponential backoff and jitter. Exponential backoff increases delay exponentially with each retry attempt, reduc
scripts/dynamodb-local-bulk-loader/src/retry_handler.py:46
↓ 4 callers
Method
createCategoryRepository
()
workshops/modernizer/backend/src/database/factory/DatabaseFactory.ts:148
↓ 4 callers
Method
createTestCategory
* Create a test category
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:138
↓ 4 callers
Method
createTestCategory
* Create a test category
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:138
↓ 4 callers
Method
demoteFromSuperAdmin
* Demote user from super admin status * @param id User ID * @returns Promise resolving to updated User or null if not found
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:84
↓ 4 callers
Method
encodeHtmlEntities
* Encode HTML entities to prevent XSS
workshops/modernizer/clean-start/frontend/src/services/sanitizationService.ts:116
↓ 4 callers
Method
encodeHtmlEntities
* Encode HTML entities to prevent XSS
workshops/modernizer/frontend/src/services/sanitizationService.ts:116
↓ 4 callers
Function
fetchTasks
()
examples/NERDS/enhanced-template/enhanced-frontend/src/App.jsx:38
↓ 4 callers
Method
findAllSuperAdmins
* Find all super admin users * @returns Promise resolving to array of super admin Users
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:90
↓ 4 callers
Method
findById
(id: number)
workshops/modernizer/clean-start/backend/src/repositories/UserRepository.ts:7
↓ 4 callers
Method
findById
* Get a category by ID
workshops/modernizer/clean-start/backend/src/repositories/CategoryRepository.ts:25
↓ 4 callers
Method
findById
(id: number)
workshops/modernizer/backend/src/database/implementations/mysql/MySQLUserRepository.ts:12
↓ 4 callers
Method
findById
* Get a category by ID
workshops/modernizer/backend/src/repositories/CategoryRepository.ts:25
↓ 4 callers
Function
format_sql_dataset
(dataset)
workshops/relational-migration/chalicelib/mysql_calls.py:399
↓ 4 callers
Method
getConfig
()
workshops/modernizer/backend/src/database/config/DatabaseConfig.ts:83
↓ 4 callers
Method
getDatabaseType
()
workshops/modernizer/backend/src/database/factory/DatabaseFactory.ts:39
↓ 4 callers
Method
getMetrics
(since?: number)
workshops/modernizer/clean-start/backend/src/utils/performanceMonitor.ts:117
↓ 4 callers
Method
getMetrics
(since?: number)
workshops/modernizer/backend/src/utils/performanceMonitor.ts:117
↓ 4 callers
Method
getProductById
* Get product by ID
workshops/modernizer/clean-start/backend/src/repositories/ProductRepository.ts:63
↓ 4 callers
Method
getProductById
* Get product by ID
workshops/modernizer/backend/src/repositories/ProductRepository.ts:63
↓ 4 callers
Method
getSystemMetrics
()
workshops/modernizer/clean-start/backend/src/utils/performanceMonitor.ts:88
↓ 4 callers
Method
getSystemMetrics
()
workshops/modernizer/backend/src/utils/performanceMonitor.ts:88
↓ 4 callers
Function
handleFlagChange
(flagName: keyof FeatureFlags, value: boolean | number)
workshops/modernizer/frontend/src/pages/AdminMigrationControlPage.tsx:46
↓ 4 callers
Function
handlePaymentDetailsChange
(field: keyof PaymentDetails, value: string)
workshops/modernizer/clean-start/frontend/src/pages/CheckoutPage.tsx:74
↓ 4 callers
Function
handlePaymentDetailsChange
(field: keyof PaymentDetails, value: string)
workshops/modernizer/frontend/src/pages/CheckoutPage.tsx:74
↓ 4 callers
Method
incrementChildrenCount
(categoryId: number, increment: number)
workshops/modernizer/backend/src/database/implementations/dynamodb/DynamoDBCategoryRepository.ts:270
↓ 4 callers
Function
logError
(message: string, error?: Error, data?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:336
↓ 4 callers
Function
logError
(message: string, error?: Error, data?: any)
workshops/modernizer/frontend/src/services/logger.ts:336
↓ 4 callers
Function
logSecurityEvent
(event: string, details?: any)
workshops/modernizer/clean-start/frontend/src/services/logger.ts:339
↓ 4 callers
Function
logSecurityEvent
(event: string, details?: any)
workshops/modernizer/frontend/src/services/logger.ts:339
↓ 4 callers
Method
mapDbRowToUser
* Map database row to User model * Converts 'is_seller' and 'super_admin' tinyint to boolean
workshops/modernizer/backend/src/repositories/UserRepository.ts:188
↓ 4 callers
Function
md5_cmn
(d,_,m,f,r,i)
examples/tester/jobs/lib/util.js:49
↓ 4 callers
Method
promoteToSuperAdmin
* Promote user to super admin status * @param id User ID * @returns Promise resolving to updated User or null if not found
workshops/modernizer/backend/src/database/interfaces/IUserRepository.ts:77
↓ 4 callers
Method
queryWithHedging
(String tableName, String partitionKeyName, String partitionKeyValue)
examples/hedging/java/ddb-hedging-sample/src/main/java/com/example/dynamodbhedging/DynamoDBHedgedQuery.java:34
↓ 4 callers
Function
refreshCart
()
workshops/modernizer/clean-start/frontend/src/contexts/CartContext.tsx:65
↓ 4 callers
Function
refreshCart
()
workshops/modernizer/frontend/src/contexts/CartContext.tsx:65
↓ 4 callers
Method
retryRequest
( requestFn: () => Promise<T>, maxRetries: number = 3, delay: number = 1000 )
workshops/modernizer/clean-start/frontend/src/services/errorService.ts:477
↓ 4 callers
Method
retryRequest
( requestFn: () => Promise<T>, maxRetries: number = 3, delay: number = 1000 )
workshops/modernizer/frontend/src/services/errorService.ts:477
↓ 4 callers
Method
sanitizeErrorForUser
(error: AppError)
workshops/modernizer/clean-start/frontend/src/services/errorService.ts:285
↓ 4 callers
Method
sanitizeErrorForUser
(error: AppError)
workshops/modernizer/frontend/src/services/errorService.ts:285
↓ 4 callers
Method
setupCompleteScenario
* Create a complete test scenario setup
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/e2e-helpers.ts:433
↓ 4 callers
Method
setupCompleteScenario
* Create a complete test scenario setup
workshops/modernizer/backend/src/test-configs/test-helpers/e2e-helpers.ts:433
↓ 4 callers
Function
sleep
examples/tester/jobs/lib/jobExec.js:54
↓ 4 callers
Method
stopTestServer
* Stop test server
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/server.ts:88
↓ 4 callers
Method
stopTestServer
* Stop test server
workshops/modernizer/backend/src/test-configs/test-helpers/server.ts:88
↓ 4 callers
Method
transformFromDynamoDB
(item: any)
workshops/modernizer/backend/src/database/implementations/dynamodb/DynamoDBCategoryRepository.ts:298
↓ 4 callers
Function
updateSQL
(sql)
workshops/relational-migration/webapp/index.js:547
↓ 4 callers
Method
withRetry
* Retry a test operation with exponential backoff
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/reliability.ts:12
↓ 4 callers
Method
withRetry
* Retry a test operation with exponential backoff
workshops/modernizer/backend/src/test-configs/test-helpers/reliability.ts:12
↓ 3 callers
Method
_read_csv
Read CSV file and return list of records. Args: csv_file: Path to CSV file Returns: List of dictionaries rep
scripts/dynamodb-local-bulk-loader/src/threaded_loader.py:195
↓ 3 callers
Method
_write_batch
Write a batch of items to DynamoDB with retry logic (thread-safe). Uses the retry handler to implement exponential backoff with jitter.
scripts/dynamodb-local-bulk-loader/src/threaded_loader.py:226
↓ 3 callers
Method
build
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithQueries/QueryWithFilterExpression.java:198
↓ 3 callers
Method
build
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithItems/TransactGetItem.java:251
↓ 3 callers
Method
build
()
examples/SDK/java/sdk_v1/data_plane/WorkingWithItems/PutItemConditional.java:184
↓ 3 callers
Method
build
()
examples/SDK/java/sdk_v1/control_plane/WorkingWithTables/CreateTableProvisioned.java:149
↓ 3 callers
Method
checkAvailability
* Check product availability
workshops/modernizer/clean-start/backend/src/services/ProductService.ts:286
↓ 3 callers
Method
checkAvailability
* Check product availability
workshops/modernizer/backend/src/services/ProductService.ts:289
↓ 3 callers
Method
cleanupTestDatabase
* Clean up test database completely
workshops/modernizer/clean-start/backend/src/test-configs/test-helpers/database.ts:37
↓ 3 callers
Method
cleanupTestDatabase
* Clean up test database completely
workshops/modernizer/backend/src/test-configs/test-helpers/database.ts:37
↓ 3 callers
Method
clearTokens
* Clear all tokens and stop auto-refresh
workshops/modernizer/clean-start/frontend/src/services/tokenRefreshService.ts:166
↓ 3 callers
Method
clearTokens
* Clear all tokens and stop auto-refresh
workshops/modernizer/frontend/src/services/tokenRefreshService.ts:166
↓ 3 callers
Method
createBothUserRepositories
()
workshops/modernizer/backend/src/database/factory/DatabaseFactory.ts:57
↓ 3 callers
Method
createCartWrapper
()
workshops/modernizer/backend/src/database/wrappers/DualWriteWrapperFactory.ts:22
↓ 3 callers
Method
createCategoryWrapper
()
workshops/modernizer/backend/src/database/wrappers/DualWriteWrapperFactory.ts:55
↓ 3 callers
Method
createOrderRepository
()
workshops/modernizer/backend/src/database/factory/DatabaseFactory.ts:128
↓ 3 callers
Method
createOrderWrapper
()
workshops/modernizer/backend/src/database/wrappers/DualWriteWrapperFactory.ts:44
↓ 3 callers
Method
createProductWrapper
()
workshops/modernizer/backend/src/database/wrappers/DualWriteWrapperFactory.ts:35
↓ 3 callers
Method
createShoppingCartRepository
()
workshops/modernizer/backend/src/database/factory/DatabaseFactory.ts:163
↓ 3 callers
Function
createTable
(tableName, skType)
scripts/PrintDistinctPKs/LoadMaxValues/nodejs/loadMaxValues.js:18
↓ 3 callers
Method
createUserWrapper
()
workshops/modernizer/backend/src/database/wrappers/DualWriteWrapperFactory.ts:13
↓ 3 callers
Method
createValidationErrorObjects
( errorMessages: string[], mysqlResult: User | null | undefined, dynamodbResult: User | null | u
workshops/modernizer/backend/src/database/wrappers/UserDualReadWrapper.ts:137
↓ 3 callers
Function
create_table
(tableName, skType)
scripts/PrintDistinctPKs/LoadMaxValues/python/load_max_values.py:16
↓ 3 callers
Function
create_table
(table_name, skType)
scripts/PrintDistinctPKs/RandomLoader/load_random_data.py:22
↓ 3 callers
Method
deleteCategory
* Delete a category
workshops/modernizer/clean-start/backend/src/services/CategoryService.ts:168
↓ 3 callers
Method
deleteCategory
* Delete a category
workshops/modernizer/backend/src/services/CategoryService.ts:171
← previous
next →
201–300 of 2,858, ranked by callers