Skip to content

ustims/DartORM-PostgreSQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL adapter for DartORM.

https://github.com/ustims/DartORM

Usage example

import 'package:dart_orm/dart_orm.dart' as ORM;
import 'package:dart_orm_adapter_postgresql/dart_orm_adapter_postgresql.dart';

...

String psqlUser = 'dart_orm_test_user';
String psqlPassword = 'dart_orm_test_user';
String psqlDBName = 'dart_orm_test';

PostgresqlDBAdapter postgresqlAdapter = new PostgresqlDBAdapter(
'postgres://$psqlUser:$psqlPassword@localhost:5432/$psqlDBName');
await postgresqlAdapter.connect();

ORM.Model.ormAdapter = postgresqlAdapter;

About

PostgreSQL adapter for DartORM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages