码迷,mamicode.com
首页 > 数据库 > 详细

PostgreSQL Connection URIs

时间:2017-10-05 13:07:29      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:res   pos   one   syntax   ogr   param   ...   optional   arc   

摘自官方文档:

The general form for a connection URI is:

postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]

The URI scheme designator can be either postgresql:// or postgres://. Each of the URI parts is optional. The following examples illustrate valid URI syntax uses:

postgresql://
postgresql://localhost
postgresql://localhost:5433
postgresql://localhost/mydb
postgresql://user@localhost
postgresql://user:secret@localhost
postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp

Components of the hierarchical part of the URI can also be given as parameters. For example:

postgresql:///mydb?host=localhost&port=5433

PostgreSQL Connection URIs

标签:res   pos   one   syntax   ogr   param   ...   optional   arc   

原文地址:http://www.cnblogs.com/liangping/p/7629004.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!