sandthorn_driver_sequel 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/lib/sandthorn_driver_sequel.rb +1 -1
- data/lib/sandthorn_driver_sequel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afdf98e380414f253698243d6c774c0ee744f01c
|
|
4
|
+
data.tar.gz: 0a47f12826b1009ac40f7425f63040f91aeba81a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 684d556c1a96bcad5a8a471e2d4f3ef470f7f2db40f4cf37af8f1f491c102ed9c32ad5c06fad652817927b17cfbf82ffe26ead0aae01305e69aa9f04c35a8c6b
|
|
7
|
+
data.tar.gz: 9e4f1345797c3d9906f66cfc056f2a971b6e17c9d303ba080a4db850ae545a8ab2de1b9454ced03609369d609e3a81c7a216242432a98142c2ed3758123d1c7d
|
data/README.md
CHANGED
|
@@ -51,6 +51,22 @@ Creates a driver from a Sequel url. Its possible to send in a block like the one
|
|
|
51
51
|
driver = SandthornDriverSequel.driver_from_connection(url: "<sequel url string>")
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
### `SandthornDriverSequel.migrate_url`
|
|
55
|
+
|
|
56
|
+
Migrate the database based on a url string
|
|
57
|
+
|
|
58
|
+
```ruby
|
|
59
|
+
SandthornDriverSequel.migrate_url(url: "<sequel url string>")
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### `SandthornDriverSequel.migrate_connection`
|
|
63
|
+
|
|
64
|
+
Migrate the database based on a connection
|
|
65
|
+
|
|
66
|
+
```ruby
|
|
67
|
+
SandthornDriverSequel.migrate_connection(connection: "<sequel connection>")
|
|
68
|
+
```
|
|
69
|
+
|
|
54
70
|
## Contributing
|
|
55
71
|
|
|
56
72
|
1. Fork it
|
|
@@ -20,7 +20,7 @@ module SandthornDriverSequel
|
|
|
20
20
|
Migration.new(url: url, context: context).migrate!
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
def migrate_connection connection
|
|
23
|
+
def migrate_connection connection: nil, context: nil
|
|
24
24
|
Migration.new(connection: connection, context: context).migrate!
|
|
25
25
|
end
|
|
26
26
|
|