类 PostgreDdlGenerator
java.lang.Object
com.baomidou.mybatisplus.extension.ddl.history.PostgreDdlGenerator
- 所有已实现的接口:
IDdlGenerator
PostgreSQL DDL 生成器
- 从以下版本开始:
- 2021-06-22
- 作者:
- hubin
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明ddl_history sqlbooleanexistTable(String databaseName, Function<String, Boolean> executeFunction) 表是否存在booleanexistTable(Connection connection) 返回 DDL_HISTORY 表名protected String已过时。3.5.13 指定请使用setSchema(String)static IDdlGenerator默认实例 (基于public模式)static IDdlGenerator基于数据库连接自动识别schemastatic IDdlGeneratornewInstanceWithSchema(String schema) 手动指定schemavoidschema模式(默认:public)从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.baomidou.mybatisplus.extension.ddl.history.IDdlGenerator
insertDdlHistory, selectDdlHistory
-
构造器详细资料
-
PostgreDdlGenerator
已过时。3.5.13newInstance() -
PostgreDdlGenerator
创建PostgreDdlGenerator实例- 参数:
schema- schema (可为null,当为null时为自动识别数据库连接的schema)- 从以下版本开始:
- 3.5.13
-
-
方法详细资料
-
newInstance
默认实例 (基于public模式)- 返回:
- PostgreDdlGenerator
-
newInstanceWithSchema
手动指定schema- 参数:
schema- schema- 返回:
- PostgreDdlGenerator
- 从以下版本开始:
- 3.5.13
-
newInstanceWithAutoSchema
基于数据库连接自动识别schema- 返回:
- PostgreDdlGenerator
- 从以下版本开始:
- 3.5.13
-
existTable
从接口复制的说明:IDdlGenerator表是否存在- 指定者:
existTable在接口中IDdlGenerator- 参数:
databaseName- 数据库名称executeFunction- 执行判断函数- 返回:
- exist or no
-
existTable
从接口复制的说明:IDdlGenerator- 指定者:
existTable在接口中IDdlGenerator- 参数:
connection- 数据库连接- 返回:
- 是否存在
- 抛出:
SQLException- SQLException
-
getDdlHistory
从接口复制的说明:IDdlGenerator返回 DDL_HISTORY 表名- 指定者:
getDdlHistory在接口中IDdlGenerator- 返回:
- SQL
-
createDdlHistory
从接口复制的说明:IDdlGeneratorddl_history sql- 指定者:
createDdlHistory在接口中IDdlGenerator- 返回:
- SQL
-
getSchema
已过时。3.5.13 指定请使用setSchema(String)- 返回:
- scheme
-
setSchema
schema模式(默认:public)为了兼容,默认使用public,但指定为null时,使用jdbc指定的schema
- 从以下版本开始:
- 3.5.13
-
newInstance()