Redleaf::MySQLStore

A Redleaf::Store that uses MySQL. This module is compiled in to Redland when MySQL 3 or 4 is available. This store provides storage using the MySQL open source database including contexts. It was added in Redland 0.9.15. It has however been tested with several million triples and deployed.

Subversion Id

  $Id$

Authors

Copyright © 2008-2009, Michael Granger All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Constants

SVNRev

SVN Revision

SVNId

SVN Id

DEFAULT_OPTIONS

Default options

Public Class Methods

load( name, opthash={} ) click to toggle source

Load the MySQL-backed Redleaf::HashesStore from the RDF graph of the specified name.

    # File lib/redleaf/store/mysql.rb, line 54
54:     def self::load( name, opthash={} )
55:         opthash[:new] = false
56:         return new( name, opthash )
57:     end
new( name, opthash={} ) click to toggle source

Create a new Redleaf::MySQLStore.

    # File lib/redleaf/store/mysql.rb, line 65
65:     def initialize( name, opthash={} )
66:         options = DEFAULT_OPTIONS.merge( opthash )
67:         return super( name, options )
68:     end

Public Instance Methods

persistent?() click to toggle source

Returns true if the Store is persistent

    # File lib/redleaf/store/mysql.rb, line 72
72:     def persistent?
73:         return true
74:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.