Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A MySQL driver for DataObjects.
This driver implements the DataObjects API for the MySQL relational database.
An example of usage:
# default user (root, no password); default port (3306)
DataObjects::Connection.new("mysql://host/database")
# specified user, specified port
DataObjects::Connection.new("mysql://user:pass@host:8888/database")
@connection = DataObjects::Connection.new("mysql://localhost/employees")
@reader = @connection.create_command('SELECT * FROM users').execute_reader
@reader.next!
This driver is provided for the following platforms:
Additionally you should have the following prerequisites:
data_objects
gemdo_jdbc
gem (shared library), if running on JRuby.To install the gem:
gem install do_mysql
If installing the MRI/1.9/Rubinius extension on OS X and you install a version
of MySQL that was built for only a single architecture, you will need to set
ARCHFLAGS
appropriately:
sudo env ARCHFLAGS="-arch i386" gem install do_mysql
To compile and install from source:
Install rake-compiler: gem install rake-compiler
.
For MRI/Rubinius extensions:
gcc
compiler. On OS X, you should install XCode tools. On
Ubuntu, run apt-get install build-essential
.apt
: ruby-dev
libmysqlclient15-dev
.apt
: mingw32
.i386-mingw32-gcc
.rake-compiler cross-ruby
.rake-compiler update-config
.Then, install this driver with (jruby -S) rake install
.
For more information, see the MySQL driver wiki page: http://wiki.github.com/firespring/datamapper-do/mysql.
Follow the above installation instructions. Additionally, you'll need:
rspec
gem for running specs.YARD
gem for generating documentation.See the DataObjects wiki for more comprehensive information on installing and contributing to the JRuby-variant of this driver: http://wiki.github.com/firespring/datamapper-do/jruby.
To run specs:
rake spec
To run specs without compiling extensions first:
rake spec_no_compile
To run individual specs:
rake spec SPEC=spec/connection_spec.rb
This code is licensed under an MIT (X11) License. Please see the
accompanying LICENSE
file.
FAQs
Unknown package
We found that sbf-do_mysql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.