Comments (2)
@clement911 this app uses a JSON-RPC interface to drive it's functionality. If you launch it as a child process and send the correct set of methods to connect, load a script file and then execute formatting commands then this should work.
It's possible to also link to the assembly directly and interact directly with classes. Though we don't do this anywhere except in the test projects. We currently aren't creating a nuget package, primarily since (1) no one's asked yet 😄 and (2) the primary use case is JSON-RPC over stdio which doesn't require a .Net reference to consume.
You should be able to grab the latest release and link directly to the DLL files AFAIK. If you hit issues with this please let me know. If consuming this component as a .Net reference works well we can look into releasing as a Nuget package to simplify this scenario.
from sqltoolsservice.
Got it.
Well, consider this an official feature request ;)
I had a look at the codebase and yes, it's clear tath the formatting API (and other APIs) is not designed to be consumed directly by other .net code. It would be pretty awkward. Probably too awkward for us to get deep into it, but maybe something to think about for a future release?
We could totally use a nicely packaged nugget that offers those services such as formatting, and intellisense.
You see, we are building a .net web app where users can write their own queries in the browser.
It seems pretty overkill for us to spin up a service, but we would definitely use it as an API.
Hopefully you can move in that direction without rocking the boat too much. It sounds like all the hard bits are already there!
from sqltoolsservice.
Related Issues (20)
- Provide SMO database properties values to the Options tab
- Get server properties
- Provide SMO database properties values to the Database Scoped Configurations tab
- "Save as CSV" does not remove CR from data
- why does the application name always add "-azdata" suffix HOT 3
- Provide SMO database properties values to the Files Tab
- Enable script option for Server Properties tabs
- Review all service errors are logged and inner exception is included where possible HOT 1
- Provide SMO database properties experience to the Filegroups Tab
- Microsoft.Data.Tools.Schema.SqlTasks.targets missing from .NET 7 HOT 1
- Provide SMO database properties experience to the QueryStore Tab
- Validate all properties dropdown options for Localization
- Add condition to verify processors old values with new values
- Query store tab wait statistics option should be changed as Dropdown instead of chekbox
- Move Restore Dialog to MSSQL extension
- Add URL support to new Restore dialog for MI server
- Notebook Agent Jobs fail on named instances
- Supporting materialized views in Kusto
- Error: Request error: UNABLE_TO_GET_ISSUER_CERT_LOCALLY HOT 1
- System.Exception: SpecifiedUri does not have existing connection.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqltoolsservice.