Skip to content

how to add composite key as a sync configuration for a table #61

@Manish061

Description

@Manish061

Hi,
My question is regarding - initSync function. When we pass the table configuration, how to pass composite key for the idName parameter.

syclib.initSync([{ tableName: 'Moods' },
{ tableName: 'Sampletable', idName: 'composite_key' }], db,
{user: userInfo}, sync_url, (data) => {}, null, null, null);

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions