PostgreSQL loadable plugin
Source
14
14
** See the License for the specific language governing permissions and
15
15
** limitations under the License.
16
16
**/
17
17
18
18
package plugin
19
19
20
20
import (
21
21
"context"
22
22
"errors"
23
23
24
-
"git.zabbix.com/ap/plugin-support/zbxerr"
25
24
"github.com/jackc/pgx/v4"
25
+
"golang.zabbix.com/sdk/zbxerr"
26
26
)
27
27
28
28
// versionHandler queries the version of the PostgreSQL server returns string
29
29
// response.
30
30
func versionHandler(
31
31
ctx context.Context,
32
32
conn PostgresClient,
33
33
_ string, _ map[string]string, _ ...string,
34
34
) (any, error) {
35
35
var version string