You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypedData fields have identity conversion to YDB column names instead of camelCase to snake_case. Use @withTypeOptions({namesConversion:snakeToCamelCaseConversion}) for backward compatibility.
several types have changed their representation, namely
struct value is present as object instead of array
decimal value is present as string instead of bigint
(it wasn't working for float values before)
fix uuid and tz-date types conversion (it wasn't working before)
signatures of most methods in Session are changed:
tablePath in bulkUpsert and readTable methods must be without database prefix
Primitive class is renamed to TypedValues
signatures of Driver, getCredentialsFromEnv and *AuthService classes are changed:
Driver:
Before: new Driver(entryPoint, dbName, authService, ...)
After: new Driver({connectionString: "...", authService: ..., ...})
or new Driver({endpoint: "...", database: "...", authService: ..., ...})
*AuthService - database and sslCredentials are no longer needed in *AuthService constructors
(ssl credentials option is now initialized in the driver if it's necessary)
Before: const authService = new MetadataAuthService(dbName, sslCredentials);
After: const authService = new MetadataAuthService();
old environment variables are no longer supported. Use YDB_ACCESS_TOKEN_CREDENTIALS instead of YDB_TOKEN, YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS instead of SA_ID, SA_PRIVATE_KEY_FILE, SA_ACCESS_KEY_ID and SA_JSON_FILE.
Features
add more methods and fields to type helper classes (82f26ea)
implement Types and TypedValues helper classes (029db0e)
implement new type conversions and fix existing type conversions (0edbcdd)
reorganize Driver and credentials to simplify SDK usage (6526378)