Skip to content

Instance Property

keyEncodingStrategy

The key encoding strategy to use.
var keyEncodingStrategy: SQLQueryEncoder.KeyEncodingStrategy

Discussion

The prefix, if set, is applied after the keyEncodingStrategy.

Example:

Prefix

Strategy

Coding key

Column name

nil

SQLQueryEncoder.KeyEncodingStrategy.useDefaultKeys

FooBar

FooBar

p

SQLQueryEncoder.KeyEncodingStrategy.useDefaultKeys

FooBar

pFooBar

nil

SQLQueryEncoder.KeyEncodingStrategy.convertToSnakeCase

FooBar

foo_bar

p

SQLQueryEncoder.KeyEncodingStrategy.convertToSnakeCase

FooBar

pfoo_bar