Sign inSign up

florinbuzec/mysql-src-h

By florinbuzec

•Updated 11 months ago

Header files for including in UDF CGo libraries for MySQL/MariaDb

Image
Developer tools
1

447

florinbuzec/mysql-src-h repository overview

⁠MySQL/MariaDb source headers

This Docker image contains files that are intended to be used as included headers in CGO UDF development.

They are stored in /usr/include/mysql/ folder

Please select the appropiate tag in order to change the software and version of the Dockerfile.

package main

/*
#cgo CFLAGS: -I/usr/include/mysql -DMYSQL_DYNAMIC_PLUGIN -DMYSQL_ABI_CHECK
#include <stdio.h>
#include <mysql.h>
// ...
*/
import "C"

// ...

Actual usage as Docker base:

// ...
COPY --from=florinbuzec/mysql-src-h:mariadb-10.2.44 --chown=mysql:mysql /usr/include/mysql /usr/include/mysql

WORKDIR /app

// ...

RUN go build -buildmode=c-shared -ldflags "-s -w" -o ./dist/library.so

Tag summary

Content type

Image

Digest

sha256:231825f54…

Size

213.7 kB

Last updated

11 months ago

docker pull florinbuzec/mysql-src-h:mysql-5.7.25