Class: SqliteDb

Inherits:
NetSystem::SqliteDb show all
Defined in:
app/net/databases/sqlite_db.rb

Instance Attribute Summary

Attributes inherited from NetSystem::Database

#client

Instance Method Summary collapse

Methods inherited from NetSystem::SqliteDb

#now

Methods inherited from NetSystem::Database

#call, call, current, inherited, #initialize, set_client

Methods inherited from Liza::Controller

color, inherited, on_connected

Methods inherited from Liza::Unit

const_missing, division, part, system, #system, test_class

Constructor Details

This class inherits a constructor from NetSystem::Database

Instance Method Details

#table_namesObject

Set up your database controllers per the DSL in guides.lizarb.org/controllers/database.html



5
6
7
8
9
# File 'app/net/databases/sqlite_db.rb', line 5

def table_names
  result = call "SELECT name FROM sqlite_schema;"
  result.delete_at 0
  result.flatten
end