postgresql - 从 .NET 交互式笔记本中的 SQL 单元查询 postgres 数据库
问题描述
背景:在 Visual Studio Code 中,我可以执行以下操作:
- 安装.NET 交互式笔记本扩展。
Ctrl-P
>
.NET Interactive: Create new blank notebook
Create as '.dib'
- 在C# (.NET Interactive)单元格中,运行
#r "nuget:Microsoft.DotNet.Interactive.SqlServer,*-*"
并
#!connect mssql ...
- 在SQL (.NET Interactive)单元中,针对 SQL Server 执行 SQL 查询。
问题:我怎样才能对 Postgres 数据库做同样的事情?