2018-12-09 17:11:48 +00:00
|
|
|
import 'dart:io';
|
|
|
|
import 'package:angel_orm_postgres/angel_orm_postgres.dart';
|
|
|
|
import 'package:postgres/postgres.dart';
|
|
|
|
|
|
|
|
main() async {
|
|
|
|
var executor = new PostgreSQLExecutorPool(Platform.numberOfProcessors, () {
|
|
|
|
return new PostgreSQLConnection('localhost', 5432, 'angel_orm_test');
|
|
|
|
});
|
|
|
|
|
2018-12-31 12:27:22 +00:00
|
|
|
var rows = await executor.query('SELECT * FROM users', {});
|
2018-12-09 17:11:48 +00:00
|
|
|
print(rows);
|
|
|
|
}
|