Skip to content

GeorgeAnson/nacos-datasource-plugin-extension

Repository files navigation

English | 简体中文

nacos-datasource-plugin-extension

maven code style

A extension plugin of nacos-datasource-plugin which support nacos-datasource-plugin to use postgresql database and DB2 database。

Note: Only the original plug-in functions have been enhanced without any changes.

Features

  • No intrusion: nacos-datasource-plugin-extension is extended on the basis of nacos-datasource-plugin. It only enhances but does not change. The introduction of nacos-datasource-plugin-extension will not have any impact on your existing nacos architecture. No impact, and no need to add any non-native nacos configuration
  • Less dependence: Only relies on nacos-datasource-plugin and naccos-common, and does not introduce dependencies when referencing them

Getting started

  • Add nacos-datasource-plugin-extension dependency

    • Latest Version: Maven Central
    • Maven:
      <dependency>
          <groupId>io.github.georgeanson</groupId>
          <artifactId>nacos-datasource-plugin-extension</artifactId>
          <version>Latest Version</version>
      </dependency>
  • Gradle

    compile group: 'io.github.georgeanson', name: 'nacos-datasource-plugin-extension', version: 'Latest Version'
  • Use it. Just use original configuration, eg: use db2 as external storage

    spring:
       sql:
         init:
         platform: db2 #Choose one: db2,mysql,postgresql
    db:
      num: 1
      url.0: jdbc:db2://${DB2_HOST}:${DB2_PORT}/${DB2_INSTANCE}
      user: ${DB2_USER}
      password: ${DB2_PWD}
      pool:
        config:
        driver-class-name: com.ibm.db2.jcc.DB2Driver
        connection-test-query: select 1 FROM SYSIBM.SYSDUMMY1
        schema: ${DB2_SCHEMA}

License

nacos-datasource-plugin-extension is released under Apache License 2.0. Please refer to License for details.

Links

Latest Version: Maven Central

Others

  • Any developer interested in getting more involved in nacos-datasource-plugin-extension can make contributions!

  • Reach out to me through email georgeanson.gm@gmail.com. Any issues or questions are welcomed on Issues.

  • Look forward to your opinions. Response may be late but not denied.