postgresql - 连接飞镖和 postgresSQL
问题描述
我正在尝试从我的颤振应用程序连接到 PostgreSQL 数据库。
void dbConnect(List<String> arguments) async {
final conn = PostgreSQLConnection(
'10.0.2.2',
5432,
'tea_leaf_system_database',
username: 'postgres',
password: 'root',
);
await conn.open();
print('Connected to Postgres database...');
await conn.query('''
''');
await conn.close();
}
这是我使用的示例,它有效。有人可以指导我锻炼登录场景吗?(使用数据库的值对表单中输入的值进行身份验证,如果用户通过身份验证则登录?)
解决方案
推荐阅读
- computer-vision - 立体图像计算机视觉
- python-3.x - 在 Python 中使用带有列表的字典
- android - 如何修改未在显示屏上显示的 textView
- webcam - ROS 从 2 个 USB 摄像头发布立体图像
- c++ - 尝试编辑 txt 文件 C++ 时出现“错误:权限被拒绝”
- mysql - 如何使用 MySQL 的 LOAD DATA INFILE 导入末尾有 2 个空行(没有任何值)的 CSV 数据集?
- javascript - 抓取时的响应处理问题
- javascript - 这是对 async/await 的正确理解吗?
- openstack - 在 devstack 中安装 Kubernetes 集群
- dataframe - 文本变量处理