12 lines
383 B
Dart
12 lines
383 B
Dart
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');
|
|
});
|
|
|
|
var rows = await executor.query('users', 'SELECT * FROM users', {});
|
|
print(rows);
|
|
}
|