|
@@ -497,7 +497,7 @@ data_sources:
|
|
|
|
|
|
Create an adapter for any data store with:
|
|
Create an adapter for any data store with:
|
|
|
|
|
|
-```
|
|
|
|
|
|
+```ruby
|
|
class FooAdapter < Blazer::Adapters::BaseAdapter
|
|
class FooAdapter < Blazer::Adapters::BaseAdapter
|
|
# code goes here
|
|
# code goes here
|
|
end
|
|
end
|
|
@@ -505,7 +505,7 @@ end
|
|
Blazer.register_adapter "foo", FooAdapter
|
|
Blazer.register_adapter "foo", FooAdapter
|
|
```
|
|
```
|
|
|
|
|
|
-See the [Presto adapter](https://github.com/ankane/blazer/blob/master/lib/blazer/adapters/presto_adapter.rb) for a good example.
|
|
|
|
|
|
+See the [Presto adapter](https://github.com/ankane/blazer/blob/master/lib/blazer/adapters/presto_adapter.rb) for a good example. Then use:
|
|
|
|
|
|
```yml
|
|
```yml
|
|
data_sources:
|
|
data_sources:
|