lib/rest/create.rb
  Creates a database with the given name and switches to this database as working-database. Types are either 'plocal' or 'memory'

  Returns the name of the working-database
Creates a database with the given name and switches to this database as working-database. Types are either 'plocal' or 'memory'
Returns the name of the working-database
Creates a database with the given name and switches to this database as working - database . Types are either ' plocal ' or ' memory ' Returns the name of the working - database
def create_this_class  *db_classname
     if block_given?
	      additional_args =     yield
		  superclass = additional_args[ :superclass ]
		  abstract = additional_args[ :abstract ].presence || nil
      else 
	superclass = nil
	abstract =  nil
      end
    command= db_classname.map do | database_class |
      c = if superclass.present?
	    "CREATE CLASS {database_class} EXTENDS {superclass}" 
	  else
	    "CREATE CLASS {database_class} "
	  end
      c << " ABSTRACT" if abstract.present?
      { type: "cmd", language: 'sql', command: c }   return value 4 command
    end
     execute anything as batch, don't roll back in case of an error
   execute transaction: false, tolerated_error_code: /already exists in current database/ do
      command
    end
  rescue ArgumentError => e
    logger.error{ e.backtrace.map {|l| "  {l}\n"}.join  }
  end
def create_this_class * db_classname if block_given? additional_args = yield superclass = additional_args [ :superclass ] abstract = additional_args [ :abstract ] . presence || nil else superclass = nil abstract = nil end command = db_classname . map do | database_class | c = if superclass . present? "CREATE CLASS #{database_class} EXTENDS #{superclass}" else "CREATE CLASS #{database_class} " end c << " ABSTRACT" if abstract . present? { type : "cmd" , language : 'sql' , command : c } end execute transaction : false , tolerated_error_code : / already exists in current database / do command end rescue ArgumentError => e logger . error { e . backtrace . map { | l | "  #{l}\n" } . join } end
Creates a database with the given name and switches to this database as working-database.
Creates a database with the given name and switches to this database as working - database .
# # return value 4 command # execute anything as batch, don't roll back in case of an error
db_classname
<not_specific>