phorm_postgres 1.2.0
phorm_postgres: ^1.2.0 copied to clipboard
PostgreSQL driver for the PHORM. Provides a PhormDatabase implementation backed by PostgreSQL, including connection pooling, dialect support, and async query execution.
PHORM PostgreSQL π #
Warning
π§ This package is under active development and is not yet functional. The API is unstable and subject to change. Do not use in production.
A PostgreSQL driver for the PHORM ORM β a lightweight, type-safe, driver-agnostic ORM for Dart and Flutter.
Roadmap #
- β PostgreSQL dialect (
SqlDialectimplementation) - β Connection pool management
- β Async query executor
- β Migration support
- β Flutter & Dart server support
Usage (planned) #
import 'package:phorm_postgres/phorm_postgres.dart';
final db = PhormPostgresDatabase(
host: 'localhost',
port: 5432,
database: 'mydb',
username: 'postgres',
password: 'secret',
tables: [usersTable],
);
final users = PhormCore<User>(dbManager: db, table: usersTable);
await users.insert(user);
Related packages #
| Package | Description |
|---|---|
| phorm_sqlite | β Stable SQLite driver |
| phorm | Core engine (included automatically) |
License #
MIT Β© 2024β2026 PHORM Contributors
