17.1.9.1 トレーニング済モデルの別のデータベースへの格納

モデルは、ログインに使用されたものとは異なるデータベースに格納できます。

次のコードは、トレーニング済モデルを別のデータベースに格納する方法を示しています。


opg4j> model.export().db(). 
              username("user").                   // DB user to use for storing the model
              password("password").               // password of the DB user
              jdbcUrl("jdbcUrl").                 // jdbc url to the DB
              modelstore("modelstoretablename").  // name of the model store table
              modelname("model").                 // model name (primary key of model store table)
              description("a model description"). // description to store alongside the model
              store()

model.export().db()
    .username("user")                   // DB user to use for storing the model
    .password("password")               // password of the DB user
    .jdbcUrl("jdbcUrl")                 // jdbc url to the DB
    .modelstore("modelstoretablename")  // name of the model store table
    .modelname("model")                 // model name (primary key of model store table)
    .description("a model description") // description to store alongside the model
    .store();
model.export().db(username="user",                         # DB user to use for storing the model
                  password="password",                     # password of the DB user
                  jdbc_url="jdbc_url",                     # jdbc url to the DB
                  model_store="modelstoretablename",       # name of the model store table
                  model_name="model",                      # model name (primary key of model store table)
                  model_description="a model description") # description to store alongside the model