| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- module Docs
- class Postgresql < UrlScraper
- self.name = 'PostgreSQL'
- self.type = 'postgres'
- self.version = '9.4'
- self.base_url = "http://www.postgresql.org/docs/#{version}/static/"
- self.root_path = 'reference.html'
- self.initial_paths = %w(sql.html admin.html)
- html_filters.insert_before 'normalize_urls', 'postgresql/extract_metadata'
- html_filters.push 'postgresql/clean_html', 'postgresql/entries', 'title'
- options[:title] = false
- options[:root_title] = 'PostgreSQL'
- options[:follow_links] = ->(filter) { filter.initial_page? }
- options[:only] = %w(
- arrays.html
- rowtypes.html
- rangetypes.html
- transaction-iso.html
- explicit-locking.html
- applevel-consistency.html
- locking-indexes.html
- config-setting.html
- locale.html
- collation.html
- multibyte.html
- using-explain.html
- planner-stats.html
- explicit-joins.html
- populate.html
- non-durability.html
- logfile-maintenance.html
- continuous-archiving.html
- dynamic-trace.html)
- options[:only_patterns] = [
- /\Asql\-/,
- /\Aapp\-/,
- /\Addl\-/,
- /\Adml\-/,
- /\Aqueries\-/,
- /\Adatatype\-/,
- /\Afunctions\-/,
- /\Atypeconv\-/,
- /\Atextsearch\-/,
- /\Amvcc\-/,
- /\Aindexes\-/,
- /\Aruntime\-config\-/,
- /\Aauth\-/,
- /\Aclient\-authentication/,
- /\Amanage\-ag/,
- /\Aroutine/,
- /\Abackup\-/,
- /\Amonitoring\-/,
- /\Awal\-/,
- /\Adisk/,
- /role/,
- /recovery/,
- /standby/]
- options[:skip] = %w(
- ddl-others.html
- functions-event-triggers.html
- functions-trigger.html
- textsearch-migration.html)
- options[:attribution] = <<-HTML
- © 1996–2014 The PostgreSQL Global Development Group<br>
- Licensed under the PostgreSQL License.
- HTML
- end
- end
|