Go Language support is a recent addition to AWS. To work with Go, you need to select the language from AWS console while creating the AWS Lambda function. In this chapter, let us learn in detail about AWS Lambda function in Go language. Installing Go To get started we need Go Language support. In this section, we will go through following details to start working with AWS Lambda in Go. This is the official site for Go download: https://golang.org/dl/ Now, download the package as per the operating system. Follow the procedure given here to install Go on the respective operating system. Installation on Windows Observe that for Windows, there is 32-bit and 64-bit download available. Download the zip file and extract the contents and store it in a directory of your choice. Add the environment variables available at ControlPanel ---> System ---> Advanced system settings. Now, click Environment Variables button and add the directory path as shown here − Yo...
Creating JAR file in Eclipse Before proceeding to work on creating a lambda function in AWS, we need AWS toolkit support for Eclipse. For any guidance on installation of the same, you can refer to the Environment Setup chapter in this tutorial. Once you are done with installation, follow the steps given here − Step 1 Open Eclipse IDE and create a new project with AWS Lambda Java Project . Observe the screenshot given below for better understanding − Step 2 Once you select Next , it will redirect you the screen shown below − Step 3 Now, a default code is created for Input Type Custom . Once you click Finish button the project gets created as shown below − Step 4 Now, right click your project and export it. Select Java / JAR file from the Export wizard and click Next . Step 5 Now, if you click Next , you will be prompted save the file in the destination folder which will be asked when you click on next. Once the...
The PostgreSQL UPDATE Query is used to modify the existing records in a table. You can use WHERE clause with UPDATE query to update the selected rows. Otherwise, all the rows would be updated. Syntax The basic syntax of UPDATE query with WHERE clause is as follows − UPDATE table_name SET column1 = value1, column2 = value2...., columnN = valueN WHERE [condition]; You can combine N number of conditions using AND or OR operators. Example Consider the table COMPANY , having records as follows − testdb # select * from COMPANY; id | name | age | address | salary ----+-------+-----+-----------+-------- 1 | Paul | 32 | California | 20000 2 | Allen | 25 | Texas | 15000 3 | Teddy | 23 | Norway | 20000 4 | Mark | 25 | Rich - Mond | 65000 5 | David | 27 | Texas | 85000 6 | Kim | 22 | South - Hall | 45000 7 | James | 24 | Houston | 10000 ( 7 rows ) The follo...
Comments
Post a Comment