Skip to content

Commit

Permalink
Merge pull request #982 from daneshk/main
Browse files Browse the repository at this point in the history
Fix broken links in API Docs
  • Loading branch information
niveathika authored Aug 27, 2024
2 parents ad2834d + c20dcb8 commit 9e2f69e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Follow one of the following ways to add the JAR in the file:
### Client
To access a database, you must first create an
[`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest/clients/Client) object.
[`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Client) object.
The examples for creating an MSSQL client can be found below.
> **Tip**: The client should be used throughout the application lifetime.
Expand All @@ -66,7 +66,7 @@ mssql:Client|sql:Error dbClient = new(
```

The sample below shows an `mssql:Client`, which uses named parameters to pass the attributes since some parameters are skipped in the constructor.
Further, the [`mssql:Options`](https://docs.central.ballerina.io/ballerinax/mssql/latest/records/Options)
Further, the [`mssql:Options`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Options)
property is passed to configure the SSL and login timeout properties in the MSSQL client.

```ballerina
Expand All @@ -87,7 +87,7 @@ mssql:Client|sql:Error dbClient = new(
```

Similarly, in the sample below, the `mssql:Client` uses named parameters, and it provides an unshared connection pool of the
[`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest/records/ConnectionPool)
[`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest#ConnectionPool)
type to be used within the client.
For more details about connection pooling, see the [`sql` library](https://docs.central.ballerina.io/ballerina/sql/latest).

Expand Down Expand Up @@ -127,7 +127,7 @@ mssql:Options mssqlOptions = {
#### Handle connection pools

All database libraries share the same connection pooling concept and there are three possible scenarios for
connection pool handling. For its properties and possible values, see [`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest/records/ConnectionPool).
connection pool handling. For its properties and possible values, see [`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest#ConnectionPool).

>**Note**: Connection pooling is used to optimize opening and closing connections to the database. However, the pool comes with an overhead. It is best to configure the connection pool properties as per the application need to get the best performance.
Expand Down Expand Up @@ -170,10 +170,10 @@ connection pool handling. For its properties and possible values, see [`sql:Conn
);
```
For more details about each property, see the [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest/clients/Client) constructor.
For more details about each property, see the [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Client) constructor.
The [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest/clients/Client) references
[`sql:Client`](https://docs.central.ballerina.io/ballerina/sql/latest/clients/Client) and all the operations
The [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Client) references
[`sql:Client`](https://docs.central.ballerina.io/ballerina/sql/latest#Client) and all the operations
defined by the `sql:Client` will be supported by the `mssql:Client` as well.
#### Close the client
Expand Down Expand Up @@ -569,5 +569,6 @@ All contributors are encouraged to read the [Ballerina code of conduct](https://
## Useful links

* For more information go to the [`MSSQL` library](https://lib.ballerina.io/ballerinax/mssql/latest).
* For example demonstrations of the usage, go to [Ballerina By Examples](https://ballerina.io/learn/by-example/#database-access).
* Chat live with us via our [Discord server](https://discord.gg/ballerinalang).
* Post all technical questions on Stack Overflow with the [#ballerina](https://stackoverflow.com/questions/tagged/ballerina) tag.
14 changes: 7 additions & 7 deletions ballerina/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Follow one of the following ways to add the JAR in the file:
### Client
To access a database, you must first create an
[`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest/clients/Client) object.
[`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Client) object.
The examples for creating an MSSQL client can be found below.
> **Tip**: The client should be used throughout the application lifetime.
Expand All @@ -59,7 +59,7 @@ mssql:Client|sql:Error dbClient = new(
```

The sample below shows an `mssql:Client`, which uses named parameters to pass the attributes since some parameters are skipped in the constructor.
Further, the [`mssql:Options`](https://docs.central.ballerina.io/ballerinax/mssql/latest/records/Options)
Further, the [`mssql:Options`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Options)
property is passed to configure the SSL and login timeout properties in the MSSQL client.

```ballerina
Expand All @@ -80,7 +80,7 @@ mssql:Client|sql:Error dbClient = new(
```

Similarly, in the sample below, the `mssql:Client` uses named parameters, and it provides an unshared connection pool of the
[`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest/records/ConnectionPool)
[`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest#ConnectionPool)
type to be used within the client.
For more details about connection pooling, see the [`sql` module](https://docs.central.ballerina.io/ballerina/sql/latest).

Expand Down Expand Up @@ -120,7 +120,7 @@ mssql:Options mssqlOptions = {
#### Handle connection pools

All database modules share the same connection pooling concept and there are three possible scenarios for
connection pool handling. For its properties and possible values, see [`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest/records/ConnectionPool).
connection pool handling. For its properties and possible values, see [`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest#ConnectionPool).

>**Note**: Connection pooling is used to optimize opening and closing connections to the database. However, the pool comes with an overhead. It is best to configure the connection pool properties as per the application need to get the best performance.
Expand Down Expand Up @@ -163,10 +163,10 @@ connection pool handling. For its properties and possible values, see [`sql:Conn
);
```
For more details about each property, see the [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest/clients/Client) constructor.
For more details about each property, see the [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Client) constructor.
The [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest/clients/Client) references
[`sql:Client`](https://docs.central.ballerina.io/ballerina/sql/latest/clients/Client) and all the operations
The [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Client) references
[`sql:Client`](https://docs.central.ballerina.io/ballerina/sql/latest#Client) and all the operations
defined by the `sql:Client` will be supported by the `mssql:Client` as well.
#### Close the client
Expand Down
14 changes: 7 additions & 7 deletions ballerina/Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Follow one of the following ways to add the JAR in the file:
### Client
To access a database, you must first create an
[`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest/clients/Client) object.
[`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Client) object.
The examples for creating an MSSQL client can be found below.
> **Tip**: The client should be used throughout the application lifetime.
Expand All @@ -59,7 +59,7 @@ mssql:Client|sql:Error dbClient = new(
```

The sample below shows an `mssql:Client`, which uses named parameters to pass the attributes since some parameters are skipped in the constructor.
Further, the [`mssql:Options`](https://docs.central.ballerina.io/ballerinax/mssql/latest/records/Options)
Further, the [`mssql:Options`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Options)
property is passed to configure the SSL and login timeout properties in the MSSQL client.

```ballerina
Expand All @@ -80,7 +80,7 @@ mssql:Client|sql:Error dbClient = new(
```

Similarly, in the sample below, the `mssql:Client` uses named parameters, and it provides an unshared connection pool of the
[`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest/records/ConnectionPool)
[`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest#ConnectionPool)
type to be used within the client.
For more details about connection pooling, see the [`sql` Package](https://docs.central.ballerina.io/ballerina/sql/latest).

Expand Down Expand Up @@ -120,7 +120,7 @@ mssql:Options mssqlOptions = {
#### Handle connection pools

All database packages share the same connection pooling concept and there are three possible scenarios for
connection pool handling. For its properties and possible values, see [`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest/records/ConnectionPool).
connection pool handling. For its properties and possible values, see [`sql:ConnectionPool`](https://docs.central.ballerina.io/ballerina/sql/latest#ConnectionPool).

>**Note**: Connection pooling is used to optimize opening and closing connections to the database. However, the pool comes with an overhead. It is best to configure the connection pool properties as per the application need to get the best performance.
Expand Down Expand Up @@ -163,10 +163,10 @@ connection pool handling. For its properties and possible values, see [`sql:Conn
);
```
For more details about each property, see the [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest/clients/Client) constructor.
For more details about each property, see the [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Client) constructor.
The [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest/clients/Client) references
[`sql:Client`](https://docs.central.ballerina.io/ballerina/sql/latest/clients/Client) and all the operations
The [`mssql:Client`](https://docs.central.ballerina.io/ballerinax/mssql/latest#Client) references
[`sql:Client`](https://docs.central.ballerina.io/ballerina/sql/latest#Client) and all the operations
defined by the `sql:Client` will be supported by the `mssql:Client` as well.
#### Close the client
Expand Down

0 comments on commit 9e2f69e

Please sign in to comment.