datapod_postgres 0.0.1
datapod_postgres: ^0.0.1 copied to clipboard
Postgres plugin for Datapod ORM.
datapod_postgres #
The PostgreSQL database plugin for the Datapod ORM.
✨ Features #
- Fully integrates PostgreSQL into the Datapod ecosystem.
- Supports transactions, connection pooling, and automated schema management.
- Handles advanced data types like JSONB and Arrays via Datapod's mapping system.
📖 Usage #
Add to your pubspec.yaml:
dependencies:
datapod_postgres: any
databases:
- name: main_db
plugin: datapod_postgres
In your connections.yaml, provide the credentials (supports environment variables):
connections:
- name: main_db
host: ${DB_HOST:-localhost}
port: 5432
username: my_user
password: ${DB_PASSWORD}
database: my_app
For full documentation, see the root README.