MySQL/MariaDB database adapter for reading SLiMS data directly from MySQL or MariaDB database.
This module provides functionality to connect to a MySQL or MariaDB database and read SLiMS data directly instead of using CSV files. Both database systems are fully supported using the same configuration and connection methods.
Configuration example in config/dev.exs:
config :voile, :mysql_source,
hostname: "localhost",
port: 3306, # Default port for both MySQL and MariaDB
username: "slims_user",
password: "slims_password",
database: "slims_database"
Summary
Functions
Closes the MySQL connection.
Establishes connection to MySQL database for SLiMS data. Returns the connection process or error.
Fetches author data from MySQL mst_author table.
Fetches biblio-author relationship data from MySQL biblio_author table.
Fetches bibliography data from MySQL biblio table. Returns stream of data similar to CSV format.
Fetches item data from MySQL item table.
Fetches member data from MySQL member table.
Fetches publisher data from MySQL mst_publisher table.
Fetches user data from MySQL user table.
Gets the count of records in a table.
Functions
Closes the MySQL connection.
Establishes connection to MySQL database for SLiMS data. Returns the connection process or error.
Fetches author data from MySQL mst_author table.
Fetches biblio-author relationship data from MySQL biblio_author table.
Fetches bibliography data from MySQL biblio table. Returns stream of data similar to CSV format.
Fetches item data from MySQL item table.
Fetches member data from MySQL member table.
Fetches publisher data from MySQL mst_publisher table.
Fetches user data from MySQL user table.
Gets the count of records in a table.