Skip to content

bratish/rittle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

animal = Rittle::Base.get_object('animal')

animal.name = "wrong"
animal.category = "wrong"
animal.insert #saves Data into the database

animal1 = Rittle::Base.get_object('animal')
animal1.insert(:name => "Cow", :category => "Good") #saves Data into the database
animals = Animal.get_rows(:category => 'wrong') #get an array of object
Animal.get_row(:category => 'wrong') #get single array of object
animals.first.update_column(:name =>"pet", :category => "DOG") #update all rows matching the conditions
animals.first.remove #remove the row from db for object
Animal.remove(:category => 'Good') #remove all rows matching the conditions
Animal.remove #empty the table

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages