semvec/pypi-packages huggingface dataset:
postgresql-kernel 0.0.2
metakernel for postgres_kernel
License: MIT License
Requires Python: >=3.8
Keywords: jupyter,jupyter-kernel,postgresql,sql

# postgresql_kernel

+ author: hsz12
+ author-email: hsz1273327@gmail.com

keywords: jupyter,jupyter-kernel,postgresql,sql

本项目fork自[postgres_kernel](https://github.com/bgschiller/postgres_kernel).由于这个项目已经快4年每更新过了而我自己常用它,但它又有一些不好用的地方所以才有了现在这个项目.

## 特性

+ 输入sql语言获得表格结果
+ 可选的自动提交
+ 不再需要设置环境变量`DATABASE_URL`
+ jupyter console中可以退出.

## TODO

1. 加入常用可视化功能
2. 改用魔术命令配置连接信息

## 安装

`pip install postgresql_kernel`

## 使用

1. 连接设置

    ```sql
    -- connection: postgres://postgres:postgres@localhost:5432/postgres
    -- autocommit: true
    -- (or false)
    ```

2. 输入sql获得结果
-- connection: postgres://postgres:postgres@localhost:5433/postgres
# 0.0.2

1. 修复bug
2. 更新jupyter相关依赖项

# 0.0.1

1. 增加类型注释
2. 更新依赖项,将psycopg2改为psycopg2-binary
3. 不再支持python3.7及以下版本

# 0.0.0

项目创建,原样复刻了[postgres_kernel](https://github.com/bgschiller/postgres_kernel)的功.

MIT License

Copyright (c) 2021 网络编程组件

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.