加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql – 如何通过doctrine查询symfony2中的模式中的表?

发布时间:2020-12-13 16:08:52 所属栏目:百科 来源:网络整理
导读:我的数据库是postgreSQL.我将参数设置如下: parameters: database_driver: pdo_pgsql database_host: 127.0.0.1 database_port: null database_name: sandbox database_user: postgres database_password: postgres mailer_transport: smtp mailer_host: 12
我的数据库是postgreSQL.我将参数设置如下:

parameters:
    database_driver: pdo_pgsql
    database_host: 127.0.0.1
    database_port: null
    database_name: sandbox
    database_user: postgres
    database_password: postgres
    mailer_transport: smtp
    mailer_host: 127.0.0.1
    mailer_user: null
    mailer_password: null
    locale: en
    secret: ThisTokenIsNotSoSecretChangeIt

问题是我不知道如何查询PostgreSQL中的现有表.我对MySQL没有问题,但在PostgreSQL中我实际上不知道该怎么做.

编辑:

# app/config/parameters.yml
parameters:
database_driver: pdo_mysql
database_host: localhost
database_name: test_project
database_user: root
database_password: password

然后我创建实体来处理我的数据.

EDIT2:


Tables are already created in postgreSQL. The connection part is done. I’ve done it successfully. What I want to do now is to create entities based on existing tables. I think now it’s much more clear and no one is on the dark side.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读