mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.44k stars 291 forks source link

Execution query from another Extension #1155

Closed partisan777 closed 1 year ago

partisan777 commented 1 year ago

Good afternoon Whether prompt there is an opportunity, to execute requests to a DB in a way. I call a command belonging to sqltools from another Extension and pass the query text and the name of the database connection as a parameter?

partisan777 commented 1 year ago

vscode.commands.executeCommand('sqltools.executeQuery', 'select * from "Users"', { connId: 'localhost' });