
# 兼容性参考
#### Go驱动兼容
- 由于数据库的Go驱动当前不适配业界成熟ORM框架（比如xorm），在创建数据库连接时传入的驱动名称兼容"postgres"和"postgresql"。
- 数据库的Go驱动无法与PostgreSQL的Go驱动并存。
 
#### ecpg兼容
ecpg提供使用URL连接方式的连接语法，不仅支持"gaussdb"，还兼容支持"postgresql"。
连接语法：
```
EXEC SQL CONNECT TO target [AS connection-name] [USER user-name];
```
其中target支持"postgresql"方式如下：
- tcp:postgresql://*hostname* \[:*port* \]\[/*dbname* \]\[?*options*\]
- unix:postgresql://*hostname* \[:*port* \]\[/*dbname* \]\[?*options*\]
 
