Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] How does minivend know which table to use



******    message to minivend-users from "Christopher P. Lindsey" <lindsey@mallorn.com>     ******

> However, for the life of me I can't work out how minivend knows which
> table in the database to use.

Hi Roger, 

   I struggled with this for a while too.  It turns out that you need
   to name the database whatever your table is called.  For example,
   in my case the table is called 'plant', so I have a line like this:

      Database   products   plant.asc  dbi:mysql:heronswood:mysql:3306

   plants.asc is the definition for your SQL database, but it doesn't
   even have to exist yet.  Just touch products/plants.sql if your
   database is already there.

   The rest of the syntax is the same.

> If it is set like "products    products.asc" do you have to make a file
> in the database directory called businesses.asc and if so what do you
> put in the file "businesses.asc" to tell minivend that the table to use
> as default is "businesses" ?

   You can just rename products.asc to businesses.asc (if businesses 
   are actually your products).

   If this is an extra database in addition to the products one, follow
   the same format.  

Chris
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: