Re: More than one db with the same namn (was: Re: WC2f3)

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11455
interpreted = N
texte = WebCat does match a database by path and not name so you can have multiple databases with the same name. Since you can specify the database path as a relative path, duplicating the folder will create a new copy (and database) for you automatically.John.>>>But it is possible to have multiple databases with the same name stored in >>>different folders? >> >>Yes. >> >>I have two 'sum.db' files located in different folders, and I haven't had >>any problems with them yet - but that doesn't mean WebCat is immune to >>mixing them up. >> >>I imagine Grant recognized that this could be a problem, so I assume he has >>programmed WebCat to always use the database file's path to identify each >>database ... instead of just the database name. >> >>On the other hand, I seem to remember some tag or context or command that >>did *not* require a full path name or a relative path name. If my memory is >>correct about this, it may be a cause for concern. For example, if WebCat >>assumes that every database has a unique name , it might mix up two or more >>open databases that have the same names even though they reside in >>completely different folders ... > >I am developing a WebCat based chat, and if I could use the same name for >more than one .db and just refer to it by name (no path) it would allow me >to create a new chat room just by duplicating the chat folder with all >templates and .dbs inside. > >Of course it's no big deal to change the names so they are unique (and all >HREFs), but if one can avoid work one will :-) > > ************************************************************* > Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 > Art director S-211 37 Malmoe Fax +46 40 97 99 77 > Ljusa Ideer AB Sweden http://www.ljusaideer.se John A. Hill, V.P. Marketing ********************************* Pacific Coast Software * Home of the Web's best 11770 Bernardo Plaza Ct. #462 * Catalog and Merchant software San Diego, CA 92128 * http://www.smithmicro.com Phone: 619-675-1106 Fax: 675-0372 ********************************* Associated Messages, from the most recent to the oldest:

    
WebCat does match a database by path and not name so you can have multiple databases with the same name. Since you can specify the database path as a relative path, duplicating the folder will create a new copy (and database) for you automatically.John.>>>But it is possible to have multiple databases with the same name stored in >>>different folders? >> >>Yes. >> >>I have two 'sum.db' files located in different folders, and I haven't had >>any problems with them yet - but that doesn't mean WebCat is immune to >>mixing them up. >> >>I imagine Grant recognized that this could be a problem, so I assume he has >>programmed WebCat to always use the database file's path to identify each >>database ... instead of just the database name. >> >>On the other hand, I seem to remember some tag or context or command that >>did *not* require a full path name or a relative path name. If my memory is >>correct about this, it may be a cause for concern. For example, if WebCat >>assumes that every database has a unique name , it might mix up two or more >>open databases that have the same names even though they reside in >>completely different folders ... > >I am developing a WebCat based chat, and if I could use the same name for >more than one .db and just refer to it by name (no path) it would allow me >to create a new chat room just by duplicating the chat folder with all >templates and .dbs inside. > >Of course it's no big deal to change the names so they are unique (and all >HREFs), but if one can avoid work one will :-) > > ************************************************************* > Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 > Art director S-211 37 Malmoe Fax +46 40 97 99 77 > Ljusa Ideer AB Sweden http://www.ljusaideer.se John A. Hill, V.P. Marketing ********************************* Pacific Coast Software * Home of the Web's best 11770 Bernardo Plaza Ct. #462 * Catalog and Merchant software San Diego, CA 92128 * http://www.smithmicro.com Phone: 619-675-1106 Fax: 675-0372 ********************************* John Hill

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Reversed words (1997) won't serve .tpl (2000) form image (2000) [BULK] [WebDNA] New Webdna framework ! ... (addresses some initial concerns... coming into the design of a large project) (2012) Access Denied! But why? (1997) Serial Number Question (1997) acgi to plugin migration problems (2000) OSX b5 [listvariables] (2000) show all problem (1997) Extended [ConvertChars] (1997) Custom WebCat Prefs ... (1997) [WebDNA] Putting '&search' into URL killing all search contexts on my sites (2010) Secure server question (1997) [Repost] Triggers, again SM??? (2000) searchable list archive (1997) Createfolder OSX WC3.08 (2001) Blog solution (2006) Hard Questions ? (1997) Insert Line Feed Character (2004) [WebDNA] Is the AutoCommit preference still supported? (2010)