Module sqlite_to_object
[hide private]
[frames] | no frames]

Module sqlite_to_object

source code

sqlite_to_object

Read the data from the base and generate a serialized graph object.

Allows to filter the content of the base. Filters can be made on:


Version: $Revision: 0.3 $

Date: $Date: 2009/02/19 $

Author: Jerome Hussenet, Cedric Bonhomme

Copyright: Copyright (c) 2009 Jerome Hussenet, Copyright (c) 2009 Cedric Bonhomme

License: Python

Functions [hide private]
 
sqlite_to_object(sqlite_file, obj_file, request_type, parameter)
Querys SQLite data base.
source code
Variables [hide private]
  requests = {'all': 'SELECT ip_src, ip_dst FROM ip_link', 'ip_d...
Function Details [hide private]

sqlite_to_object(sqlite_file, obj_file, request_type, parameter)

source code 

Querys SQLite data base.

Extracts information from the SQLite base and serialize an object containing the result.


Variables Details [hide private]

requests

Value:
{'all': 'SELECT ip_src, ip_dst FROM ip_link',
 'ip_dst': 'SELECT ip_src, ip_dst FROM ip_link WHERE ip_dst = ipdst',
 'ip_src': 'SELECT ip_src, ip_dst FROM ip_link WHERE ip_src = ipsrc',
 'time': 'SELECT ip_src, ip_dst FROM ip_link WHERE tts >= tts1 AND tts\
 <=  tts2',
 'tts': 'SELECT ip_src, ip_dst FROM ip_link WHERE tts >= tts1 AND tts \
<=  tts2'}