Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Cross platform location for SQLite databases?

by muzakfetch (Scribe)
on May 26, 2009 at 17:26 UTC ( [id://766259]=note: print w/replies, xml ) Need Help??


in reply to Re: Cross platform location for SQLite databases?
in thread Cross platform location for SQLite databases?

Thanks, shmem but using these technologies requires authentication on it's own. Most of what I need to store is just simple metadata that requires no security. Therefore, Kerberos and LDAP are a little overkill for my needs.

What I am truly looking for is a module that identifies the OS, and then chooses an appropriate location for storing metadata. Depending on context and privileges, this can be in the user's profile directory, or if running as a privileged user, in "/var" or "C:\Windows\something" (sorry not a windows geek).

Perhaps this doesn't exist, and I should just write my own :-)

  • Comment on Re^2: Cross platform location for SQLite databases?

Replies are listed 'Best First'.
Re^3: Cross platform location for SQLite databases?
by shmem (Chancellor) on May 26, 2009 at 17:37 UTC
    Therefore, Kerberos and LDAP are a little overkill for my needs.

    Why overkill? Bot are centralized stores with a well defined protocol. Querying the platform, selecting the storage location depending on the result and implementing the do-abouts for each looks more like overkill. And, "requires no security" ? That's almost always wrong ;-)

Re^3: Cross platform location for SQLite databases?
by ww (Archbishop) on May 26, 2009 at 23:25 UTC

    ...module that identifies the OS...

    No need for a module: $^O

    see perldoc perlvar.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://766259]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-09-16 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.