Sha256: 0ece3fa1eb65a0ceba360a453d2e699e0dac55108a9547724ba0da22a97fdc86

Contents?: true

Size: 998 Bytes

Versions: 4

Compression:

Stored size: 998 Bytes

Contents

# Sequel::Postgres::Schemata

Easily manipulate Postgres schemas in Sequel.

## Installation

Add this line to your application's Gemfile:

    gem 'sequel-postgres-schemata'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sequel-postgres-schemata

## Usage
```ruby
Sequel.extension :postgres_schemata

db = Sequel.connect adapter: 'postgres', search_path: %w(foo public)
db.create_schema :bar

db.search_path # => [:foo, :public]
db.schemata # => [:pg_toast, :pg_temp_1, :pg_toast_temp_1, :pg_catalog, :public, :information_schema, :bar]
db.current_schemata # => [:public]
db.search_path = [:bar, :foo, :public]
db.current_schemata # => [:bar, :public]
db.rename_schema :bar, :foo
db.current_schemata # => [:foo, :public]
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sequel-postgres-schemata-0.0.4 README.md
sequel-postgres-schemata-0.0.3 README.md
sequel-postgres-schemata-0.0.2 README.md
sequel-postgres-schemata-0.0.1 README.md