Sponsored Content
Full Discussion: Perl - SQLite question
Top Forums Shell Programming and Scripting Perl - SQLite question Post 302183246 by garric on Tuesday 8th of April 2008 03:12:02 PM
Old 04-08-2008
Perl - SQLite question

Hello All,

I am trying to write a Perl script that is using 'SQLite' as the application needs a very light weight Database. I wanted to know how to catch exceptions when I run queries in SQLite. Without this the Perl script comes to a halt everytime an exception occurs. Please help.

Regards,
Garric
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sqlite issue?

i'm on freebsd 5.2.1, and from a fresh installation i've used pkg_add for the latest ported version of apache, as well as installing php 5. supposedly php5 comes with native support for sqlite (in the binary package), and this is what i added. i am trying to install a site engine (the 'gyrator'... (0 Replies)
Discussion started by: brandan
0 Replies

2. HP-UX

sqlite database in HP-UX vs Linux

Hi everybody, We have a cgi application which accesses sqlite database. It works fine in Linux environment but the same code doesn't enter data into the database when done in HP-UX environment. Should the codes vary depending on whether it is Linux or HP-UX. Regards Ruma (1 Reply)
Discussion started by: perlprg
1 Replies

3. Shell Programming and Scripting

hell and sqlite

Hi everyone, I have a requirement that requires me to fill an sqlite database with 100,000 entries (no duplicates). I will start out by giving the command that will insert the values necessary to populate the database: # sqlite /var/local/database/dblist "insert into list... (2 Replies)
Discussion started by: ogoy
2 Replies

4. Shell Programming and Scripting

[ask]sqlite with shell script

hlow all i have file like this : BDG0100.2011091620162100CF5341.DAT BDG0100.2011091720175500CF5342.DAT BDG0100.2011091820192900CF5343.DAT BDG0100.2011091920210600CF5344.DAT but now i want make file like this 20110916.DAT 20110919.DAT 20110918.DAT 20110919.DAT so what i can do that... (3 Replies)
Discussion started by: zvtral
3 Replies

5. UNIX and Linux Applications

ruby/SQLite database interface

Hello, I'm not sure this is quite the right place, but there do seem to be allot of posts with folks using ruby to play nicely with databases so I thought I would give it a go. I am starting a long process of developing a database application bases on SQLite and ruby. This will run on various... (1 Reply)
Discussion started by: LMHmedchem
1 Replies

6. Shell Programming and Scripting

Using sqlite query to build script...

Okay, so this one is a bit above my knowledge level so I'm hoping for some pointers. Here's the scenario: I have a backup system on my network that makes single file images of the machines it's backing up and uses an sqlite database to keep track of everything. As is pretty typical with... (2 Replies)
Discussion started by: NyxPDX
2 Replies

7. BSD

FF, about:config, storage.vacuum.last.places.sqlite

Starting this new thread, because the older one has been shut, Looking in my linux distro, firefox and about:config something like the following appears storage.vacuum.last.places.sqlite: 1474885593 When using bleachbit, this very file named places.sqlite I am told it can't be deleted. In... (4 Replies)
Discussion started by: 1in10
4 Replies

8. UNIX for Beginners Questions & Answers

Manipulating UNIX and sqlite db

Hi there, I have multiple rows of data. For example: S/N | Name| Age I would like to store them into sqlite database after doing some grepping in CSV and output them into console/html format. Will it be possible? (1 Reply)
Discussion started by: alvinoo
1 Replies
DBIx::Class::Storage::DBI::SQLite(3)			User Contributed Perl Documentation		      DBIx::Class::Storage::DBI::SQLite(3)

NAME
DBIx::Class::Storage::DBI::SQLite - Automatic primary key class for SQLite SYNOPSIS
# In your table classes use base 'DBIx::Class::Core'; __PACKAGE__->set_primary_key('id'); DESCRIPTION
This class implements autoincrements for SQLite. Known Issues RT79576 NOTE - This section applies to you only if ALL of these are true: * You are or were using DBD::SQLite with a version lesser than 1.38_01 * You are or were using DBIx::Class versions between 0.08191 and 0.08209 (inclusive) or between 0.08240-TRIAL and 0.08242-TRIAL (also inclusive) * You use objects with overloaded stringification and are feeding them to DBIC CRUD methods directly An unfortunate chain of events led to DBIx::Class silently hitting the problem described in RT#79576 <https://rt.cpan.org/Public/Bug/Display.html?id=79576>. In order to trigger the bug condition one needs to supply more than one bind value that is an object with overloaded stringification (numification is not relevant, only stringification is). When this is the case the internal DBIx::Class call to "$sth->bind_param" would be executed in a way that triggers the above-mentioned DBD::SQLite bug. As a result all the logs and tracers will contain the expected values, however SQLite will receive all these bind positions being set to the value of the last supplied stringifiable object. Even if you upgrade DBIx::Class (which works around the bug starting from version 0.08210) you may still have corrupted/incorrect data in your database. DBIx::Class will currently detect when this condition (more than one stringifiable object in one CRUD call) is encountered and will issue a warning pointing to this section. This warning will be removed 2 years from now, around April 2015, You can disable it after you've audited your data by setting the "DBIC_RT79576_NOWARN" environment variable. Note - the warning is emitted only once per callsite per process and only when the condition in question is encountered. Thus it is very unlikely that your logsystem will be flooded as a result of this. METHODS
connect_call_use_foreign_keys Used as: on_connect_call => 'use_foreign_keys' In connect_info to turn on foreign key (including cascading) support for recent versions of SQLite and DBD::SQLite. Executes: PRAGMA foreign_keys = ON See <http://www.sqlite.org/foreignkeys.html> for more information. AUTHOR AND CONTRIBUTORS
See AUTHOR and CONTRIBUTORS in DBIx::Class LICENSE
You may distribute this code under the same terms as Perl itself. perl v5.18.2 2014-01-29 DBIx::Class::Storage::DBI::SQLite(3)
All times are GMT -4. The time now is 12:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy