{"id":16193347,"url":"https://github.com/starnowski/querydsl-fun","last_synced_at":"2025-04-07T15:17:39.621Z","repository":{"id":171776826,"uuid":"648395710","full_name":"starnowski/querydsl-fun","owner":"starnowski","description":"Fun with querydsl","archived":false,"fork":false,"pushed_at":"2023-06-05T17:57:13.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T17:53:04.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starnowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-01T21:55:16.000Z","updated_at":"2023-06-02T18:45:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"927edaf4-0c4d-4a32-b45f-21fac9c1115a","html_url":"https://github.com/starnowski/querydsl-fun","commit_stats":null,"previous_names":["starnowski/querydsl-fun"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fquerydsl-fun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fquerydsl-fun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fquerydsl-fun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fquerydsl-fun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starnowski","download_url":"https://codeload.github.com/starnowski/querydsl-fun/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675599,"owners_count":20977378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T08:14:36.945Z","updated_at":"2025-04-07T15:17:39.592Z","avatar_url":"https://github.com/starnowski.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# querydsl-fun\nFun with querydsl\n\n\n\nhttps://www.baeldung.com/intro-to-querydsl\nhttps://www.baeldung.com/querydsl-with-jpa-tutorial\n\n\nHow to send list of string values in AWS RDS data api library for java\n\nTo send a list of string values using the AWS RDS Data API library for Java, you can follow these steps:\n\n1. Import the necessary AWS SDK libraries in your Java file:\n```java\nimport software.amazon.awssdk.regions.Region;\nimport software.amazon.awssdk.services.rdsdata.RdsDataClient;\nimport software.amazon.awssdk.services.rdsdata.model.*;\n```\n\n2. Create an instance of the `RdsDataClient` by specifying the AWS region:\n```java\nRegion region = Region.YOUR_REGION; // Replace YOUR_REGION with the desired AWS region\nRdsDataClient rdsDataClient = RdsDataClient.builder()\n                              .region(region)\n                              .build();\n```\n\n3. Build the `SqlParameter` object for the list of strings:\n```java\nList\u003cString\u003e stringList = Arrays.asList(\"value1\", \"value2\", \"value3\");\nSqlParameter stringListParameter = SqlParameter.builder()\n                                        .name(\"myList\")\n                                        .value(ParameterValue.builder()\n                                                .arrayValue(ArrayValue.builder()\n                                                        .addAllStringValues(stringList)\n                                                        .build())\n                                                .build())\n                                        .build();\n```\n\n4. Build the `ExecuteStatementRequest` with the SQL statement and parameters:\n```java\nString sqlStatement = \"INSERT INTO myTable (column) VALUES (:myList)\";\nExecuteStatementRequest request = ExecuteStatementRequest.builder()\n                                    .resourceArn(\"arn:aws:rds:your-resource-arn\") // Replace with your RDS resource ARN\n                                    .secretArn(\"arn:aws:secretsmanager:your-secret-arn\") // Replace with your Secret Manager ARN\n                                    .database(\"your-database-name\") // Replace with your database name\n                                    .sql(sqlStatement)\n                                    .parameters(stringListParameter)\n                                    .build();\n```\n\n5. Execute the statement using the `RdsDataClient`:\n```java\nrdsDataClient.executeStatement(request);\n```\n\nMake sure to replace the placeholder values with your own specific details, such as the AWS region, resource ARN, Secret Manager ARN, database name, and SQL statement.\n\nThis example demonstrates sending a list of string values as a parameter in an SQL INSERT statement. Adjust the code according to your specific use case and the operation you want to perform.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarnowski%2Fquerydsl-fun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarnowski%2Fquerydsl-fun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarnowski%2Fquerydsl-fun/lists"}