workloadreplay

package
v0.0.0-...-963c118 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: PostgreSQL Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplayLogs

func ReplayLogs(host string, port string, user string, db string, file string) error

ReplayLogs replays logs from a file to a specified host, port, user, and database. It reads log messages from the file and sends them to the corresponding session. If a session does not exist, a new session is created. The function returns an error if there is any issue with opening the file or parsing the log messages.

Parameters: - host: the hostname of the PostgreSQL server - port: the port number of the PostgreSQL server - user: the username to connect to the PostgreSQL server - db: the database name to connect to - file: the file containing the log messages

Returns: - error: an error if there is any issue with opening the file or parsing the log messages

TODO : unit tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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