DBIx - Main interface to the object-relational mapper; maps shopify objects to database objects, and back again.
DBIx represents a way to grab and upload data to the database.
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->get_all('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.
WWW::Shopify
Adam Harrison
See LICENSE in the main directory.
To install WWW::Shopify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Shopify
CPAN shell
perl -MCPAN -e shell install WWW::Shopify
For more information on module installation, please visit the detailed CPAN module installation guide.