BSD Ports

databases/ruby-mysql2 0.5.7 NetBSD

Simple, fast Mysql library for Ruby, binding to libmysql

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
databases, ruby
Package size
203.5 KiB, 588.3 KiB installed

Description

Mysql2

Mysql2 is a modern, simple and very fast Mysql library for Ruby - binding to libmysql.

The Mysql2 gem is meant to serve the extremely common use-case of connecting, querying and iterating on results. Some database libraries out there serve as direct 1:1 mappings of the already complex C API's available. This one is not.

It also forces the use of UTF-8 (or binary) for the connection (and all strings in 1.9, unless Encoding.default_internal is set then it'll convert from UTF-8 to that encoding) and uses encoding-aware MySQL API calls where it can.

Install

Binary package:

pkgin install ruby33-mysql2

From pkgsrc:

cd /usr/pkgsrc/databases/ruby-mysql2 && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.5.7
NetBSD 10.1 aarch640.5.7
SmartOS / illumos x86_640.5.7
macOS 15 arm640.5.7

Dependencies

Run dependencies 2

Configuration

No options to configure.

Service scripts
none
Flavors
ruby34-mysql2-0.5.7, ruby40-mysql2-0.5.7