Class Amalgalite::Requires
In: lib/amalgalite/requires.rb
lib/amalgalite/requires.rb
Parent: Object

Requires encapsulates requiring items from the database

Methods

Attributes

compressed_column  [R] 
compressed_column  [R] 
contents_column  [R] 
contents_column  [R] 
db_connection  [R] 
db_connection  [R] 
dbfile_name  [R] 
dbfile_name  [R] 
filename_column  [R] 
filename_column  [R] 
table_name  [R] 
table_name  [R] 

Public Class methods

Allocate a database connection to the given filename

Allocate a database connection to the given filename

Setting a class level variable as a flag to know what we are currently in the middle of requiring

Setting a class level variable as a flag to know what we are currently in the middle of requiring

Public Instance methods

load a file in this database table. This will check and see if the file is already required. If it isn‘t it will select the contents associated with the row identified by the filename and eval those contents within the context of TOPLEVEL_BINDING. The filename is then appended to $LOADED_FEATURES.

if the file was required then true is returned, otherwise false

load a file in this database table. This will check and see if the file is already required. If it isn‘t it will select the contents associated with the row identified by the filename and eval those contents within the context of TOPLEVEL_BINDING. The filename is then appended to $LOADED_FEATURES.

if the file was required then true is returned, otherwise false

return the sql to find the file contents for a file in this requires

return the sql to find the file contents for a file in this requires

[Validate]