cancel
Showing results for 
Search instead for 
Did you mean: 

Mobilink > Where are ml_* procedures/functions documented?

0 Kudos
1,190

I've generated a sample Mobilink project via the graphical wizard and obtained the cons_setup.sql and remote_setup.sql scripts. I can see that they're using a bunch of ml_* procedures/functions:

  • where are these documented on help.sap.com? I managed to find the MobiLink server system procedures section, and can see a whole bunch of ml_* procedures documented there, but none of the ones that are used in the two SQL scripts above!
  • Starting from scratch and without the GUI, how does one install all the ml_* related tables and procs in a consolidated DB? Where is all of this documented?

Related to https://sqlanywhere-forum.sap.com/questions/35971/mobilink-getting-started-without-graphical-wizard

Accepted Solutions (0)

Answers (2)

Answers (2)

VolkerBarth
Contributor

See the docs for the according consolidated databases, to cite:

To set up a database so that it can be used as a MobiLink consolidated database, you must run a setup script. Your SQL Anywhere installation includes a script for each of the supported RDBMSs. These scripts are all located in %SQLANY17%\\MobiLink\\setup.

I cannot check this currently but IIRC the scripts should define those ML objects. And of course the scripts to define those vary for the different consolidated databases types.

0 Kudos

do you know where the ml_* function are documented?

Breck_Carter
Participant
0 Kudos

They are described in great detail in Parts of a MobiLink application".

The MobiLink consolidated architecture is event driven, so the ml_* procedures are referred to as event handlers, as in "SQL row handlers", also called "table events".

Here's an example of the detailed docs: download_cursor table event

For more information about how ml_add_table_script works, see the actual code in C:\\Program Files\\SQL Anywhere 17\\MobiLink\\Setup

regdomaratzki
Product and Topic Expert
Product and Topic Expert
0 Kudos

Am I hitting a blind spot, or are the following functions, being used by the auto-generated script not present in that section? - ml_model_register_schema_use, ml_model_get_schema_action, ml_add_lang_conn_script_chk, and so on...

regdomaratzki
Product and Topic Expert
Product and Topic Expert
0 Kudos

The ML system stored procedures added to support the MobiLink modeling wizard in SQL Central are intended only to be used by SQL Central and are not documented.