Module: Torque::PostgreSQL::Adapter::SchemaDumper
- Defined in:
- lib/torque/postgresql/adapter/schema_dumper.rb
Constant Summary collapse
- SEARCH_VECTOR_SCANNER =
/ to_tsvector\( ('[^']+'|[a-z][a-z0-9_]*)[^,]*,[^\(]* \(?coalesce\(([a-z][a-z0-9_]*)[^\)]*\)\)? (?:::[^\)]*\))? (?:\s*,\s*'([A-D])')? /ix
Instance Method Summary collapse
Instance Method Details
#dump(stream) ⇒ Object
:nodoc:
24 25 26 27 28 29 30 |
# File 'lib/torque/postgresql/adapter/schema_dumper.rb', line 24 def dump(stream) # :nodoc: @connection.dump_mode! super @connection.dump_mode! stream end |
#initialize ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/torque/postgresql/adapter/schema_dumper.rb', line 15 def initialize(*) super if with_versioned_commands? @versioned_commands = VersionedCommands::SchemaTable.new(@connection.pool) @ignore_tables << @versioned_commands.table_name end end |