VeighNa框架的PostgreSQL数据库接口
说明
基于peewee开发的PostgreSQL数据库接口。
使用
全局配置
在VeighNa中使用PostgreSQL时,需要在全局配置中填写以下字段信息:
| 名称 | 含义 | 必填 | 举例 |
|---|---|---|---|
| database.name | 名称 | 是 | postgresql |
| database.host | 地址 | 是 | localhost |
| database.port | 端口 | 是 | 5432 |
| database.database | 实例 | 是 | vnpy |
| database.user | 用户名 | 是 | postgres |
| database.password | 密码 | 是 | 123456 |
请注意,VeighNa不会主动为关系型数据库创建数据库,所以请确保你所填的database.database字段对应的数据库已经创建好了。若未创建数据库,请手动连上数据库并创建。
创建实例
VeighNa不会主动为PostgreSQL数据库创建实例,所以使用前请确保database.database字段中填写的的数据库实例已经创建了。
若实例尚未创建,可以使用【pgAdmin 4】客户端的【Create Database】进行操作。
Release files for vnpy_postgresql 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vnpy_postgresql-1.1.2.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vnpy_postgresql-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / vnpy_postgresql-1.1.2.tar.gz
| Download URL | vnpy_postgresql-1.1.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
acfc58ca6b4090c81544467b315c15bdefd41a39464efdf8ea38b3cc8c9dc340
|
|
BLAKE2b-256 checksum How to use checksums |
42fca4b8e300538e8cbf9e775666c73fc3cf0c815f1eb957b9fd7dc1c38dd968
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.3
|
Release files / vnpy_postgresql-1.1.2-py3-none-any.whl
| Download URL | vnpy_postgresql-1.1.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd18bfe99d0e1534c1a76093d307d7dae7b4e9f2a396d94e5e375128c1639fa5
|
|
BLAKE2b-256 checksum How to use checksums |
a8d996f700b7278a9c57bff81ce48207e4b55a3fabd04a21ceb300e0984964ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.3
|