class Xapian::WritableDatabase

Defined in:

xapian/writable_database.cr

Constant Summary

CREATE = LibXapian::DatabaseAction::CREATE
CREATE_OR_OPEN = LibXapian::DatabaseAction::CREATE_OR_OPEN
CREATE_OR_OVERWRITE = LibXapian::DatabaseAction::CREATE_OR_OVERWRITE
OPEN = LibXapian::DatabaseAction::OPEN

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Xapian::Database

close close, doc_count doc_count, reopen reopen, to_unsafe : LibXapian::Database to_unsafe

Constructor methods inherited from class Xapian::Database

new(path : String)
new(database : LibXapian::Database)
new

Constructor Detail

def self.new(path, action) #

[View source]

Class Method Detail

def self.create(path) #

[View source]
def self.create_or_open(path) #

[View source]
def self.create_or_overwrite(path) #

[View source]
def self.open(path) #

[View source]

Instance Method Detail

def add_document(document : Document) : Document::Id #

[View source]
def as_writable #

[View source]
def commit #

[View source]
def delete_document(id : Document::Id) #

[View source]
def replace_document(id : Document::Id, document : Document) #

[View source]
def transaction(flushed : Bool = true, &) #

[View source]