teleren/devto huggingface dataset:
Fetching User Location and Weather Data
Tags: swift, programming, tutorial
Published: 2023-08-26 10:21:00

In this unit, we will delve into the process of fetching the user's current location using the Core Location framework and integrating this location data with the weather API to fetch and display relevant weather data in our application.

## Fetching User's Current Location

The first step in fetching the user's current location is to import the Core Location framework into your Swift file. This framework provides the necessary classes and protocols to configure and schedule location delivery and send location events to your app.

Once the framework is imported, you need to create an instance of `CLLocationManager` and request the user's permission to access their location data. This can be done using the `requestWhenInUseAuthorization` method. It's important to handle the case where the user denies permission.

After obtaining the user's permission, you can start updating the user's location using the `startUpdatingLocation` method. The `CLLocationManager` will then start sending location updates to its delegate.

## Handling Location Updates and Errors

The `CLLocationManagerDelegate` protocol defines methods used by the `CLLocationManager` object to notify your app when the location updates or when there is an error in fetching the location.

You can use the `didUpdateLocations` method to handle location updates. This method gives you an array of `CLLocation` objects. The last object in this array is the most recent location update.

In case of any error in fetching the location, the `didFailWithError` method is called. You can use this method to handle any errors that might occur while fetching the location.

## Integrating User Location with Weather API

Once you have the user's location, you can integrate it with the weather API to fetch the weather data for that location. Most weather APIs allow you to fetch weather data based on latitude and longitude, which can be obtained from the `CLLocation` object.

You can make an API call with the user's latitude and longitude as parameters to fetch the weather data. Once you receive the data, you can parse it and update your app's UI to display the weather data.

## Displaying Location-Based Weather Data

After fetching and parsing the weather data, you can update your app's UI to display this data. You can display various information like the current temperature, humidity, wind speed, and weather conditions like clear, cloudy, or rainy.

In conclusion, fetching the user's location and integrating it with the weather API is a crucial part of developing a weather app. It allows you to provide the user with accurate and relevant weather data based on their current location.
Introduction to Core Location Framework
Tags: swift, programming, tutorial
Published: 2023-08-26 10:18:57

The Core Location framework is a powerful tool provided by Apple that allows developers to retrieve the geographical location and orientation of a device. This framework is essential for creating location-aware applications, such as a weather app that provides weather updates based on the user's current location.

## Understanding the Core Location Framework

The Core Location framework provides classes and protocols to configure and schedule location delivery and send location events to the server. It can provide the device's current location, track changes in the device's location, or monitor specific regions.

## Importance of User Location in Weather Applications

In a weather application, the user's location is crucial to provide accurate and relevant weather data. By integrating the Core Location framework, the app can fetch the user's current location and use it to request weather data from the weather API. This ensures that the user always receives the most relevant weather updates for their current location.

## Requesting and Handling User Permission for Location Access

Before an app can access the user's location, it must request the user's permission. This is done by adding keys to the app's Info.plist file and requesting authorization with the `requestWhenInUseAuthorization` or `requestAlwaysAuthorization` methods.

It's important to handle the case where the user denies location access. In such cases, the app should degrade gracefully and continue to function with limited capabilities.

## Understanding Location Accuracy and How to Set It

The accuracy of location data is determined by the desiredAccuracy property of the `CLLocationManager` object. This property allows the app to specify the level of accuracy it needs, which can range from the exact location to the nearest kilometer.

Setting a higher accuracy results in increased power usage and should be used judiciously. For a weather app, an accuracy of `kCLLocationAccuracyKilometer` is usually sufficient.

In conclusion, the Core Location framework is a vital tool for creating a location-aware weather application. By understanding how to use this framework, you can provide your users with accurate and relevant weather updates based on their current location.
Countdown Timer using JavaScript
Tags: countdown, es6, ethereum, time
Published: 2023-08-26 10:06:09

**Introduction**
In this step-by-step tutorial, we will learn how to create a basic countdown timer using JavaScript. Countdown timers are commonly used in websites to create anticipation and inform users about upcoming events, promotions, or product launches. We will build a countdown timer that displays days, hours, minutes, and seconds until a specified date and time.

**Step 1:** Set Up the HTML Structure
The first step is to create the HTML structure for our countdown timer. We'll use a simple HTML layout with placeholders for days, hours, minutes, and seconds.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kjv2ynxtpzylwglxsu1t.png)

**Step 2:** Style the Countdown Timer
We'll add some basic CSS to style our countdown timer. Create a file named "style.css" and link it in the HTML file.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tp9045iuvbzgj5fz3fq0.png)

**Step 3:** Create the Countdown Logic
Now, let's create the JavaScript code to calculate and display the countdown. Create a file named "script.js" and link it in the HTML file.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6hursujrp21cvp74b05q.png)

**Step 4:** Test Your Countdown Timer
Open the HTML file in a web browser, and you should see the countdown timer displaying the time remaining until the specified target date and time.

**Conclusion**
In this tutorial, we've created a simple countdown timer using HTML, CSS, and JavaScript. You can further customize the timer's appearance and behavior to suit your project's needs. 


Watch on tutorial : https://www.youtube.com/watch?v=Ei3SIwjAAMU
Comparing PHP functions: empty(), is_null(), isset().
Tags: php, laravel
Published: 2023-08-26 10:04:06

It seems like there might be a few typos in your question, but I'll assume you're asking about comparing three PHP functions: empty(), is_null(), and isset(). These functions are used to check the status and value of variables in PHP. Let's discuss each function and their differences:

**In summary:**

- Use empty() to check if a variable is considered empty, including null.

```
$var1 = "";      // Empty string  // empty($var1) => true
$var1 = "0";     // Empty string  // empty($var1) => true
$var2 = null;    // Null value    //  empty($var2) => true
$var3 = 0;       // Numeric zero  // empty($var3) => true
$var4 = array(); // Empty array   // empty($var4) => true

```
- Use is_null() to specifically check if a variable is null.

```
$var = null;  // is_null($var) => true
$var = 0;  // is_null($var) => false
$var = array();  // is_null($var) => false
```


- Use isset() to check if a variable is set and not null.

```
$var = null; // isset($var) => false
$var = "Hello"; // isset($var) => true
$var = 0;      // isset($var) => true
$var = array();  // isset($var) => true
```
Run SDXL 1.0 on Google Colab Free - No Need of GPU
Tags: colab, google, ai, sdxl
Published: 2023-08-26 09:53:52

Links :-

- https://colab.research.google.com/drive/1di6valj9GnNa-gVa1lvHU-ZsEFqd9bM-?authuser=2
- https://colab.research.google.com/gist/SH20RAJ/c4dda79cdbc989aa86a9f27a6d3f286b/1-sdxl_v1-0_webui_colab.ipynb?authuser=2
Apache AGE: Bridging Relational and Graph Database Worlds with PostgreSQL
Tags: postgressql, database
Published: 2023-08-26 09:37:32

## Introduction

Understanding relationships within data is essential in today's data-centric environment. Enter graph databases, which were created with the explicit purpose of locating and mapping complicated relationships in huge datasets. Let's first understand the fundamental idea before delving into Apache AGE's role in this context.

## Introduction to Graph Databases

In essence, graph databases store, map, and query relationships using graph topologies. They are made up of edges (relationships) and nodes (entities). Graph databases are superior in this area compared to conventional relational databases, which often struggle to map complex relationships without many joins. They provide direct links to neighbouring nodes, which speeds up and effectively queries relationships. This design is especially useful for use cases where comprehending and making use of data relationships are crucial, such as social networks, knowledge graphs, and recommendation systems.


## What is Apache AGE?

This relational database system is converted into a powerful graph database using the Apache AGE PostgreSQL extension. It flawlessly combines the advantages of a graph data model with PostgreSQL's robustness. Developers familiar with the well-liked graph database, Neo4j, will find it especially useful because it uses the openCypher query language.

## Why Choose Apache AGE?

1. **Versatility**: Within a single database system, Apache AGE offers both relational and graph data models, giving users the best of both worlds.
2. **Open Source Advantage**: Because AGE is one of the projects managed by the Apache Software Foundation, it benefits from a cooperative, open, and dynamic environment.
3. **Performance**: Expect efficient querying, especially in the face of big datasets, thanks to PostgreSQL's optimisation and Apache AGE's design.

## Challenges and Considerations

While there is no denying the appeal of Apache AGE, it is important to keep in mind that there are several types of graph databases. It's critical to assess the precise requirements of your application and to balance the advantages of doing so with any potential learning curve.

## Conclusion

In the world of databases, Apache AGE represents a big development. It expands the possibilities for data modelling by combining the benefits of relational and graph databases, ensuring that complex interactions are no longer a problem but rather a benefit. The answer, as usual, is to match technology to the specific requirements of your application.
Embarking on Cloud Adventures: Exploring AWS Projects to Hone DevOps Excellence
Published: 2023-08-26 09:30:37

**𝐈'𝐯𝐞 𝐞𝐦𝐛𝐚𝐫𝐤𝐞𝐝 𝐨𝐧 𝐚 𝐣𝐨𝐮𝐫𝐧𝐞𝐲 𝐭𝐨 𝐞𝐧𝐡𝐚𝐧𝐜𝐞 𝐦𝐲 𝐃𝐞𝐯𝐎𝐩𝐬 𝐚𝐧𝐝 𝐂𝐥𝐨𝐮𝐝 𝐄𝐧𝐠𝐢𝐧𝐞𝐞𝐫𝐢𝐧𝐠 𝐬𝐤𝐢𝐥𝐥𝐬 𝐛𝐲 𝐝𝐢𝐯𝐢𝐧𝐠 𝐢𝐧𝐭𝐨 𝐬𝐨𝐦𝐞 𝐡𝐚𝐧𝐝𝐬-𝐨𝐧 𝐀𝐖𝐒 𝐩𝐫𝐨𝐣𝐞𝐜𝐭𝐬.** 🛠️💻

_𝑯𝒆𝒓𝒆 𝒂𝒓𝒆 𝒂 𝒇𝒆𝒘 𝒑𝒓𝒐𝒋𝒆𝒄𝒕𝒔 𝑰'𝒎 𝒘𝒐𝒓𝒌𝒊𝒏𝒈 𝒐𝒏 𝒕𝒐 𝒄𝒓𝒚𝒔𝒕𝒂𝒍𝒊𝒛𝒆 𝒎𝒚 𝒆𝒙𝒑𝒆𝒓𝒕𝒊𝒔𝒆 𝒂𝒏𝒅 𝒔𝒕𝒂𝒚 𝒂𝒕 𝒕𝒉𝒆 𝒇𝒐𝒓𝒆𝒇𝒓𝒐𝒏𝒕 𝒐𝒇 𝒄𝒍𝒐𝒖𝒅 𝒕𝒆𝒄𝒉𝒏𝒐𝒍𝒐𝒈𝒚:_

✅ 𝐃𝐞𝐩𝐥𝐨𝐲 𝐚 𝐖𝐞𝐛 𝐀𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧 𝐨𝐧 𝐀𝐖𝐒:
Create a web application and deploy it using AWS services like EC2, S3, RDS, and Route 53. Implement security measures, set up load balancing, and configure a CI/CD pipeline for automatic deployments.

✅ 𝐒𝐞𝐫𝐯𝐞𝐫𝐥𝐞𝐬𝐬 𝐑𝐄𝐒𝐓 𝐀𝐏𝐈 𝐰𝐢𝐭𝐡 𝐀𝐖𝐒 𝐋𝐚𝐦𝐛𝐝𝐚:
Build a serverless REST API using AWS Lambda, API Gateway, and DynamoDB. Implement authentication, authorization, and monitor usage using CloudWatch.

✅ 𝐈𝐧𝐟𝐫𝐚𝐬𝐭𝐫𝐮𝐜𝐭𝐮𝐫𝐞 𝐚𝐬 𝐂𝐨𝐝𝐞 𝐰𝐢𝐭𝐡 𝐓𝐞𝐫𝐫𝐚𝐟𝐨𝐫𝐦:
Create an infrastructure deployment project using Terraform. Provision resources like EC2 instances, security groups, and VPCs. Explore Terraform modules and best practices.

✅ 𝐃𝐨𝐜𝐤𝐞𝐫𝐢𝐳𝐞𝐝 𝐌𝐢𝐜𝐫𝐨𝐬𝐞𝐫𝐯𝐢𝐜𝐞𝐬 𝐨𝐧 𝐄𝐂𝐒:
Containerize a microservices application using Docker and deploy it on Amazon ECS. Configure a load balancer, auto-scaling, and service discovery.

✅ 𝐑𝐞𝐚𝐥-𝐭𝐢𝐦𝐞 𝐃𝐚𝐭𝐚 𝐏𝐫𝐨𝐜𝐞𝐬𝐬𝐢𝐧𝐠 𝐰𝐢𝐭𝐡 𝐊𝐢𝐧𝐞𝐬𝐢𝐬 𝐚𝐧𝐝 𝐋𝐚𝐦𝐛𝐝𝐚:
Build a data processing pipeline using Amazon Kinesis and AWS Lambda. Ingest, process, and analyze real-time data streams from various sources.

✅ 𝐂𝐈/𝐂𝐃 𝐏𝐢𝐩𝐞𝐥𝐢𝐧𝐞 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐨𝐧 𝐰𝐢𝐭𝐡 𝐀𝐖𝐒 𝐂𝐨𝐝𝐞𝐏𝐢𝐩𝐞𝐥𝐢𝐧𝐞:
Set up a complete CI/CD pipeline using AWS CodePipeline, CodeBuild, and CodeDeploy. Automate testing, code review, and deployment stages.

✅ 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐞𝐝 𝐁𝐚𝐜𝐤𝐮𝐩 𝐚𝐧𝐝 𝐑𝐞𝐬𝐭𝐨𝐫𝐞 𝐮𝐬𝐢𝐧𝐠 𝐀𝐖𝐒 𝐁𝐚𝐜𝐤𝐮𝐩:
Design a backup and restore solution for AWS resources using AWS Backup. Implement policies, schedules, and retention settings.

✅ 𝐌𝐨𝐧𝐢𝐭𝐨𝐫𝐢𝐧𝐠 𝐚𝐧𝐝 𝐀𝐥𝐞𝐫𝐭𝐢𝐧𝐠 𝐰𝐢𝐭𝐡 𝐂𝐥𝐨𝐮𝐝𝐖𝐚𝐭𝐜𝐡:
Create a comprehensive monitoring system using Amazon CloudWatch. Set up custom metrics, alarms, and dashboards to gain insights into your infrastructure.

✅ 𝐂𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫 𝐎𝐫𝐜𝐡𝐞𝐬𝐭𝐫𝐚𝐭𝐢𝐨𝐧 𝐰𝐢𝐭𝐡 𝐀𝐦𝐚𝐳𝐨𝐧 𝐄𝐊𝐒:
Deploy Kubernetes workloads on Amazon EKS. Set up clusters, manage nodes, and configure scaling for containerized applications.

✅ 𝐇𝐢𝐠𝐡𝐥𝐲 𝐀𝐯𝐚𝐢𝐥𝐚𝐛𝐥𝐞 𝐀𝐫𝐜𝐡𝐢𝐭𝐞𝐜𝐭𝐮𝐫𝐞 𝐰𝐢𝐭𝐡 𝐀𝐖𝐒 𝐋𝐚𝐦𝐛𝐝𝐚 𝐚𝐧𝐝 𝐃𝐲𝐧𝐚𝐦𝐨𝐃𝐁:
Design a highly available serverless architecture using AWS Lambda and DynamoDB. Implement failover mechanisms and ensure continuous operation.

𝘓𝘦𝘵'𝘴 𝘤𝘰𝘯𝘯𝘦𝘤𝘵 𝘢𝘯𝘥 𝘴𝘩𝘢𝘳𝘦 𝘰𝘶𝘳 𝘱𝘢𝘴𝘴𝘪𝘰𝘯 𝘧𝘰𝘳 𝘪𝘯𝘯𝘰𝘷𝘢𝘵𝘪𝘰𝘯.

🌟🔗 #DevOps #CloudEngineering #AWSProjects #ContinuousLearning
Using tagged template literals to syntax highlight code in strings
Tags: css, html, javascript
Published: 2023-08-26 08:47:56

---
title: Using tagged template literals to syntax highlight code in strings
published: true
tags:
  - CSS
  - HTML
  - JavaScript
cover_image: https://images.unsplash.com/photo-1594904351111-a072f80b1a71?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=3000&h=1260&q=80
---

Sometimes as developers we have to write code that generates code. This can be for a number of reasons, but one of the most common ones is that we want to generate HTML or CSS from JavaScript. This is a common pattern in libraries like [styled-components](https://styled-components.com/) and [Lit](https://lit.dev/), but it's also something you might want to do if you're writing a tool that generates HTML or CSS.

## The problem

This code often ends up as strings in JavaScript, and strings get no syntax highlighting. This is because the editor doesn't know that the string contains HTML or CSS, and will therefore highlight it as a regular JavaScript string. This is bad for readability and makes it easy to introduce bugs to the HTML or CSS code.

## The solution

We can use a few `String.raw` "hacks" to make Prettier format CSS and HTML strings!
The `String.raw` tagged template literal is basically a no-op and won't do any changes to the template string, but if you assign it to a variable with the name `html` or `css`, tools like Prettier and VS Code will interpret the string as HTML or CSS respectively ✨

Before:

```js
const myCss = `
  h1 {
    color: hotpink;
  }
`;

const myHtml = `
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>My document</title>
</head>
<body>
  <h1>Hello, world 🌏</h1>
</body>
</html>
`;
```

After:

```js
const css = String.raw;
const html = String.raw;

const myCss = css`
  h1 {
    color: hotpink;
  }
`;

const myHtml = html`
  <!doctype html>
  <html lang="en">
    <head>
      <meta charset="UTF-8" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <title>My document</title>
    </head>
    <body>
      <h1>Hello, world 🌏</h1>
    </body>
  </html>
`;
```

![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sb7v7im737hrl6tk0ov4.png)

(Regrettably, dev.to's syntax highlighter doesn't recognize this as CSS or HTML, but try it out in your editor!)

_Cover image by [Walkator](https://unsplash.com/@walkator) on [Unsplash](https://unsplash.com/photos/klMii3cR9iI)_
关于Nginx中路由报错 no resolver defined to resolve localhost
Published: 2023-08-26 08:33:56

- 该问题是由动态解析造成的
- 比如下面的配置：
  > 该路由规则 `proxy_pass` 后面跟的是变量，当该位置是变量的时候Nginx会在每个请求中动态解析localhost, 而这就会导致resolver错误
```
        location ~ ^/k8sapi(/(.*))?$ {
            proxy_set_header    Host  $host;
            proxy_set_header    X-Real-IP  $remote_addr;
            proxy_set_header    X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_redirect off;
            proxy_pass https://localhost:6443/$2;
        }
```
- 而如果是静态解析
- 比如下面的配置：
  >  `proxy_pass` 后面跟的是一个具体的值，该值会被硬编码到proxy_pass指令中，只会在Nginx启动的时候解析一次，并且缓存结果；那么这种方式就不会报错
```
        location ~ ^/k8sapi(/(.*))?$ {
            proxy_set_header    Host  $host;
            proxy_set_header    X-Real-IP  $remote_addr;
            proxy_set_header    X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_redirect off;
            proxy_pass https:localhost:6443/;
        }

```
- How do I fix the problem?
Two scenarios:
  - 1. Add a line to the routing rule
 ```
    location ~ ^/k8sapi(/(.*))?$ {
        resolver 127.0.0.1;  # 添加这一行
        proxy_set_header    Host  $host;
        proxy_set_header    X-Real-IP  $remote_addr;
        proxy_set_header    X-Forwarded-For  $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_redirect off;
        proxy_pass https://localhost:6443/$2;
    }
```
  - 2、直接换成回环地址 `https://127.0.0.1:6443/$2`
Es 5 features
Published: 2023-08-26 08:14:00

"use strict"
String[number] access
Multiline strings
String.trim()
Array.isArray()
Array forEach()
Array map()
Array filter()
Array reduce()
Array reduceRight()
Array every()
Array some()
Array indexOf()
Array lastIndexOf()
JSON.parse()
JSON.stringify()
Date.now()
Date toISOString()
Date toJSON()
Property getters and setters
Reserved words as property names
Object methods
Object defineProperty()
Function bind()
Trailing commas

know more about es 5 features with code 

https://harilovejavascript.com/know-more-about-esma-script-5/
Part 4: Continuous Integration for Confidence: Running Tests in CI with GoLang RestAPI and MariaDB
Tags: go, mariadb, cicd, unittest
Published: 2023-08-26 07:37:53

Continuous Integration (CI) is a development practice that involves automating the testing and integration of code changes. In this article, we'll discuss setting up a CI environment for your GoLang RestAPI project with MariaDB. This practice ensures that your codebase remains stable and reliable as new changes are introduced.

## Section 1: Understanding Continuous Integration and Its Benefits

Continuous Integration involves frequently merging code changes into a shared repository and automatically running tests to detect and address integration issues early. It enhances collaboration, reduces bugs, and ensures code stability.

## Section 2: Selecting a CI Platform

Choose a CI platform that suits your project's needs. Popular choices include Jenkins, Travis CI, CircleCI, and GitHub Actions. In this example, we'll use GitHub Actions.

## Section 3: Configuring CI for GoLang RestAPI and MariaDB

1. Create a `.github/workflows` directory in your project repository.
2. Inside this directory, create a YAML file (e.g., `ci.yml`) to define the CI workflow.

Example GitHub Actions workflow:

```yaml
name: CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    services:
      mariadb:
        image: mariadb:latest
        ports:
          - 3306:3306
        env:
          MYSQL_ROOT_PASSWORD: root

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Set up Go
        uses: actions/setup-go@v2
        with:
          go-version: 1.17

      - name: Build and test
        run: |
          go build -o app
          go test -v ./...
```

## Section 4: Monitoring Build and Test Results

After setting up the CI workflow, push your changes to the repository. Visit the CI platform to monitor the build and test process. If any tests fail, the CI platform will notify you.

## Section 5: Conclusion

Setting up Continuous Integration for your GoLang RestAPI project with MariaDB is a proactive step toward maintaining code quality and reliability. The CI environment automates testing, ensuring that new code changes don't introduce regressions. Embrace this practice to build a robust and dependable software development process.

As you embark on your journey to master Docker, GoLang, MariaDB integration, CRUD operations, and testing, remember that hands-on practice is key to mastery. Dive into each article's steps, experiment with code examples, and adapt them to your specific project needs. By doing so, you'll build a solid foundation for creating efficient and reliable applications.
Food Delivery Franklin Park
Tags: fooddeliver
Published: 2023-08-26 07:17:49

Welcome to our delightful restaurant where your taste buds are our utmost priority! We provide top-quality [food delivery Franklin Park](https://www.spiceracknj.com/). Steaming hot soups, juicy sandwiches, or crunchy salads - whatever you're in the mood for, our takeout food service will deliver it right at your doorsteps! Think no more. Grab your phone and order your favorite comfort food. Taste the best takeout food Franklin Park offers, from the comfort of your home!
how to run multiple queries in .txt file on sql plus
Tags: sql, oracle
Published: 2023-08-26 07:15:07

step 1 : create file with .txt extension

step 2 : write the sql queries that you want to execute inside the .txt file

step 3 : copy the location of the file

step 4 : run the file as below

for example :

i have created the file script.txt


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q7hrmcrrbq9xculp5j2t.png)

now for running this


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hjnrt1uqlb95gou4sny4.png)


output :


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pvu7luzlizyugpc0ssbg.png)


if you are not getting the queries that are executed then run the command


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iql331cvji6o3kcteth6.png)