mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
More documentation updates. (#205)
* Add additional documentation. * More docs updates. * Update docs. Add building info.
This commit is contained in:
@@ -1,11 +1,29 @@
|
||||
# Using the JSON-RPC API
|
||||
# Using the SQL Tools JSON-RPC API
|
||||
The SQL Tools JSON-RPC API is the best way to consume the services
|
||||
functionality in SQL tools. The JSON-RPC API available through stdio
|
||||
of the SQL Tools Service process.
|
||||
|
||||
> NOTE: The [API Reference](../api/index.md) is the best starting point for working directly with
|
||||
> the .NET API.
|
||||
|
||||
## Download SQL Tools Service binaries
|
||||
|
||||
To get started using the SQL Tools Service you'll need to install the service binaries.
|
||||
Download the SQL Tools Service binaries from the
|
||||
[sqltoolsservice release page](https://github.com/Microsoft/sqltoolsservice/releases).
|
||||
|
||||
Daily development builds will end with "-alpha". Release builds will end with " Release".
|
||||
For example, here is the [0.2.0 release](https://github.com/Microsoft/sqltoolsservice/releases/tag/v0.2.0).
|
||||
It is also possible to build the SQL Tools Service directly from source.
|
||||
|
||||
## Query Execution Example using JSON-RPC API
|
||||
|
||||
An example of using the JSON RPC API from a .Net Core console application is available at docs/samples/jsonrpc/netcore.
|
||||
The following snippet provides a basic example of how to connect to a database and execute a query.
|
||||
|
||||
See the [full source code](https://github.com/Microsoft/sqltoolsservice/blob/dev/docs/samples/jsonrpc/netcore/executequery/Program.cs)
|
||||
for this sample.
|
||||
|
||||
```typescript
|
||||
internal static async Task ExecuteQuery(string query)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user