Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

DataRow my$Database $Database.EnsureData(schema: string, table: string, column: string, value: any, input: object)

...

DataRow my$Database.EnsureData(schema: string, table: string, column: string, value: any, input: object, initInput: object)

...

DataRow my$Database.EnsureData(store: string, schema: string, table: string, column: string, value: any, input: object)

...

DataRow my$Database.EnsureData(store: string, schema: string, table: string, column: string, value: any, input: object, initInput: object)

Arguments

string schema
Name of target schema

...

Object or function for initialize for new rows. Optional.
string store
Name or Id number of target data store. This parameter is optional.
string store
name of store
string schema
name of schema
string table
name of table
string column
name of column to compare

...

value to compare
object input
row values
object initInput
row values if row does not exists

Example

Code Block
languagejs
$Database.EnsureData("MySchema", "MyTable", "Id", id, {
    Id : id,
    Name : $Xml.Evaluate('Name')
}, {
    CreateDate : DateTimeOffset.now
});

Examples

...

languagejs

...

See Also