main.anubis 1.04 KB
/*************************************************   
 * *Project*    The HayamiKi (早見木) project                       
 *   
 * *Title*      Interfacing, generating and controling a database with Anubis
 *   
 * *Copyright*  Copyright © David René 2015-2019. 
 *
 *   
 *  
 *   
 * *Overview*  
 *  generate database management interface under Anubis according on model description file'.
 *  Like django 
 */   

read tools/string.anubis
read tools/basis.anubis
read generation/files.anubis
read hayamiki_lib/hk_generator.anubis
read model.3.0.0.anubis
read system/muscle.anubis

global define One 
  hayamiki_1_19
  (
    List(String) args        
  ) =
  if load_hk_generator_1_19 is
  {
    failure         then  println("Hayamiki generator can't be load"),
    success(hk_gen) then  forget(hk_gen.generate_model_files(the_database_description, "", true))
  }.
   
 global define One
  hk_save
  (
    List(String)  args
  )=
  with message = to_Message(the_database_description),
  println("\n Database dump");
  println(dump(message))
  .