sfMySQLToolsPlugin - 0.1.0

symfony MySQL Tools plugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

MySQL Tools plugin

The MySQL Tools is a symfony plugin that provides some useful tasks to (re)create triggers, events and procedures. PHP cannot create this kind of MySQL stuff, so you need to have an access to the MySQL Client command line.

Overview

It provide 4 tasks :

  • mysql:insert-all
  • mysql:insert-triggers
  • mysql:insert-events
  • mysql:insert-procedures

You have to create 3 new files into data/sql

  • triggers.sql
  • events.sql
  • procedures.sql

TODO

  • Find a way to get the database connection parameter directly from the databases.yml

  • Find a way to catch the mysql client return when an error occur