https://github.com/dantleech/fixturator
Project to automatically extract a fixture set from an existing database based on foreign key relationships
https://github.com/dantleech/fixturator
Last synced: over 1 year ago
JSON representation
Project to automatically extract a fixture set from an existing database based on foreign key relationships
- Host: GitHub
- URL: https://github.com/dantleech/fixturator
- Owner: dantleech
- Created: 2011-10-25T22:52:31.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-10-30T15:01:42.000Z (over 14 years ago)
- Last Synced: 2025-01-30T15:44:34.285Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 121 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Fixturator
==========
Disclaimer
----------
This is currently very much a work in progress...
Extract data
------------
Application to extract fixture sets from pre-existing databases by introspecting foreign key relationships.
For example, you could extract all data relating to one User...
The application will::
- Extract the data of the user specified.
- Scan for many-to-one relationships, extract the data, recursive.
- Scan for one-to-many relationships, extract the data, recursive.
Then::
- Each fixture will be assigned a UUID in addition to storing its original ID.
- Relationships will be redefined using the UUID. (i think)
Import data
-----------
The application will import data::
- Overwriting data if it already exists (determined by a UUID or a combination of fields).
- Insert if existing fixture cannot be located.
The aim is to NOT force a purge of the database everytime, but to merge and reset existing fixtures.