pgmicro_libs

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 11 Imported by: 0

README

pgmicro-go-platform-libs

pre-compiled platform-specific libraries for pgmicro go driver

Documentation

Index

Constants

View Source
const LibraryName = "libpgmicro_sdk_kit"

Variables

This section is empty.

Functions

func LoadPgmicroLibrary

func LoadPgmicroLibrary(config LoadPgmicroLibraryConfig) (handle uintptr, err error)

loads the library either from embedded artifacts or searching through LD_LIBRARY_PATH list

Types

type LibraryLoadStrategy

type LibraryLoadStrategy string
const (
	EmbeddedLibraryLoadStrategy LibraryLoadStrategy = "embedded"
	SystemLibraryLoadStrategy   LibraryLoadStrategy = "system"
	MixedLibraryLoadStrategy    LibraryLoadStrategy = "mixed"
)

type LoadPgmicroLibraryConfig

type LoadPgmicroLibraryConfig struct {
	// LoadStrategy available options
	// "embedded" or "" (default): always load library from embedded resources
	// "system": always load library from system pathes
	// "mixed": try to load library from the embedded resources and fallback to system search if no library was found
	LoadStrategy LibraryLoadStrategy
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL