Skip to content

Commit

Permalink
Merge pull request #754 from kaneeldias/v1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kaneeldias authored Sep 8, 2023
2 parents a88c5b7 + fe0ca83 commit 39ad6ff
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ The `batch-operation` project demonstrates how to use the MSSQL client to perfor

To run the example, move into the `batch-operation` project and execute the command below.

```
$bal run
```shell
bal run
```
It will build the `batch-operation` Ballerina project and then run it.

# Output of the example

This gives the following output when running this project.

```ballerina
```shell
Data in Customers table:
{"customerId":3,"firstName":"Peter","lastName":"Stuart","registrationID":1,"creditLimit":5000.75,"country":"USA"}
{"customerId":4,"firstName":"Stephanie","lastName":"Mike","registrationID":2,"creditLimit":8000.0,"country":"USA"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ The `call-stored-procedures` project demonstrates how to use the MSSQL client to

To run the example, move into the `call-stored-procedures` project and execute the command below.

```
$bal run
```shell
bal run
```
It will build the `call-stored-procedures` Ballerina project and then run it.

# Output of the example

This gives the following output when running this project.

```ballerina
```shell
Call stored procedure `InsertCustomer`.
Inserted data: {"customerId":3,"firstName":"Bill","lastName":"John","registrationId":3,"creditLimit":5000.0,"country":"United Kingdom"}
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ The `complex-queries-operation` project demonstrates how to use the MSSQL client

To run the example, move into the `complex-queries-operation` project and execute the command below.

```
$bal run
```shell
bal run
```
It will build the `complex-queries-operation` Ballerina project and then run it.

# Output of the example

This gives the following output when running this project.

```ballerina
```shell
Query Result :
{"customerId":2,"firstName":"Dan","lastName":"Brown","registrationId":2,"creditLimit":10000.0,"country":"UK"}
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ The `execute-operation` project demonstrates how to use the MSSQL client to exec

To run the example, move into the `execute-operation` project and execute the command below.

```
$bal run
```shell
bal run
```
It will build the `execute-operation` Ballerina project and then run it.

# Output of the example

This gives the following output when running this project.

```ballerina
```shell
Updated Row count: 1
Deleted Row count: 1
```
41 changes: 0 additions & 41 deletions examples/execute-operation/README.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,19 @@ The `query-operation` project demonstrates how to use the MSSQL client to perfor

To run the example, move into the `query-operation` project and execute the command below.

```
$bal run
```shell
bal run
```
It will build the `query-operation` Ballerina project and then run it.

# Output of the example

This gives the following output when running this project.

```ballerina
```shell
Full Customer details: {"customerId":1,"firstName":"Peter","lastName":"Stuart","registrationId":1,"creditLimit":5000.75,"country":"USA"}
Full Customer details: {"customerId":2,"firstName":"Dan","lastName":"Brown","registrationId":2,"creditLimit":10000.0,"country":"UK"}
Total rows in customer table : 2
Full Customer details: {"customerId":1,"firstName":"Peter","lastName":"Stuart","registrationId":1,"creditLimit":5000.75,"country":"USA"}
Full Customer details: {"customerId":2,"firstName":"Dan","lastName":"Brown","registrationId":2,"creditLimit":10000.0,"country":"UK"}
```

0 comments on commit 39ad6ff

Please sign in to comment.