NAME
DBIx - Main interface to the object-relational mapper; maps shopify objects to database objects, and back again.
DESCRIPTION
DBIx represents a way to grab and upload data to the database.
EXAMPLES
To give an idea of how you're supposed to use this object, look at the following example, which builds off the example in WWW::Shopify: here we get all the products, and then insert them into the database.
my $SA = new WWW::Shopify::Public($ShopURL, $APIKey, $AccessToken);
my $DBIX = new WWW::Shopify::Common::DBIx();
my @Products = $SA->getAll('WWW::Shopify::Product');
for (@Products) {
my $Product = $DBIX->from_shopify($_);
$Product->insert;
}
This doesn't check for duplicates or anything else, but it's easy enough to check for that; see the DBIx documentation.
SEE ALSO
AUTHOR
Adam Harrison
LICENSE
See LICENSE in the main directory.