Sqlbible

Description

Sqlbible is a library and a command-line application to work with bible texts stored as SQLite databases.

Usage

Sqlbible library

require 'sqlbible'

bible = Sqlbible.new('kjv.sqlite')

# simple search
bible.search(/Jesus/)

# Sqlbible is designed to use well with Scripref references and passages
require 'scripref'

# define a reference for the gospels
p = Scripref::Parser.new(Scripref::English)
ref = p.parse('Mat-John')

# search with range
bible.search(/Jesus/, range: ref)

# get the text of a reference
bible.reference(ref)

Sqlbible as command-line application

See help of the command-line application:

sqlbible -h

Requirements

  • SQLite with PCRE extension
  • Environment variable SQLITE_PCRE_EXTENSION set to the path of the file of the PCRE extension

Author

Jan Friedrich [email protected]

MIT License

See file LICENSE for details.