-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 497: Abstracting Storage API #555
Conversation
Add new WPDB Storage Adapter, instruct Stream to use it Provide a filtering mechanism to alter storage engine used
… for columns in MySQL
Execute the following to get a mongo server working inside vvv for testing: ``` vasshin # ssh into vagrant sudo apt-get install mongodb -y sudo pecl install mongo echo 'extension=mongo.so' | sudo tee -a /etc/php5/mods-available/mongo.conf sudo php5enmod mongo sudo service php-fpm restart ``` You'll need to install a mu-plugin so the db engine would switch, put the following in `mu-plugins/stream-mongo.php` ( or any filename ): ``` <?php add_filter( 'wp_stream_db_adapter', function() { return 'mongo'; } ); add_filter( 'wp_stream_no_tables', '__return_true' ); ```
@lukecarbis @fjarrett And now that Travis is finally happy, please do review/test at will. |
@fjarrett Please note that I'm now using WordPress:core ruleset for PHPCS checks, feel free to add extra rules to |
Conflicts: bin/.travis.yml includes/db.php includes/db/install/wpdb.php phpcs.ruleset.xml stream.php tests/bootstrap.php
…temporarily untill JetStream enables Facets feature
Conflicts: classes/class-wp-stream-context-query.php classes/class-wp-stream-dashboard-widget.php classes/class-wp-stream-db.php classes/class-wp-stream-install.php classes/class-wp-stream-query.php includes/db/install/wpdb.php includes/install.php stream.php tests/tests/test-stream.php
What shall we do about the
|
@lukecarbis I'd say option #1, except db-updates should remain in the includes dir because it's not a class. We might even be able to delete it completely. |
I'm happy with this branch now 😺. @shadyvb - any reason for us to keep the 'do not merge' tag? |
Issue 497: Abstracting Storage API
Resolves #497
Remaining:
See #497 for further discussion.