LightDB JDBC驱动程序允许Java程序使用标准的、与数据库无关的Java代码连接到LightDB。
除了标准连接参数外,驱动程序还支持一些额外的属性,可用于指定与LightDB特定的额外驱动程序行为。
                lightdbSyntaxCompatibleType (String)
                指定LightDB兼容的类型,有效值为oracle/mysql/off,默认值为off。它可以与Oracle数据库、MySQL数据库兼容。
                例如:
                
                    jdbc:postgresql://localhost:5432/postgres?lightdbSyntaxCompatibleType=oracle
                    
                        jdbc可以与Oracle数据库兼容
                    
                
                currentSchema (String)
                指定要设置在搜索路径中的模式(或用逗号分隔的多个模式)。
                此模式将用于解析在此连接上使用的语句中使用的未限定对象名称。
                例如:
                
                    jdbc:postgresql://localhost:5432/postgres?currentSchema=\"$user\", oracle
                    
                        jdbc将自动在搜索路径中补充public。实际的搜索路径是"$user", oracle, public, lt_catalog
                    
                
                options (String)
                指定选项中的guc参数。格式如下:options=-c guc参数名称=参数值,其中options后面的值需要进行编码。
                例如:
                
                    jdbc:postgresql://localhost:5432/postgres?options=-c%20search_path=\"$user\",public,oracle,lt_catalog%20-c%20statement_timeout=90000
                    
                        search_path是guc参数的一部分,因此您也可以设置search_path。
                    
                
更详细功能特性可查看 LtJDBC官方手册。