rake-db 2.20.3 → 2.20.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -931,7 +931,7 @@ declare class Migration<CT> {
931
931
  *
932
932
  * change(async (db) => {
933
933
  * await db.createDomain('domainName', (t) =>
934
- * t.integer().check(db.sql`value = 42`),
934
+ * t.integer().check(t.sql`value = 42`),
935
935
  * );
936
936
  *
937
937
  * // use `schemaName.domainName` format to specify a schema
@@ -941,7 +941,7 @@ declare class Migration<CT> {
941
941
  * .nullable()
942
942
  * .collate('C')
943
943
  * .default('default text')
944
- * .check(db.sql`length(value) > 10`),
944
+ * .check(t.sql`length(value) > 10`),
945
945
  * );
946
946
  * });
947
947
  * ```
@@ -1050,7 +1050,7 @@ declare class Migration<CT> {
1050
1050
  /**
1051
1051
  * Create and drop database views.
1052
1052
  *
1053
- * Provide SQL as a string or via `db.sql` that can accept variables.
1053
+ * Provide SQL as a string or via `t.sql` that can accept variables.
1054
1054
  *
1055
1055
  * ```ts
1056
1056
  * import { change } from '../dbScript';
@@ -1065,11 +1065,11 @@ declare class Migration<CT> {
1065
1065
  * `,
1066
1066
  * );
1067
1067
  *
1068
- * // view can accept db.sql with variables in such way:
1068
+ * // view can accept t.sql with variables in such way:
1069
1069
  * const value = 'some value';
1070
1070
  * await db.createView(
1071
1071
  * 'viewWithVariables',
1072
- * db.sql`
1072
+ * t.sql`
1073
1073
  * SELECT * FROM a WHERE key = ${value}
1074
1074
  * `,
1075
1075
  * );
package/dist/index.js CHANGED
@@ -1919,7 +1919,7 @@ class Migration {
1919
1919
  *
1920
1920
  * change(async (db) => {
1921
1921
  * await db.createDomain('domainName', (t) =>
1922
- * t.integer().check(db.sql`value = 42`),
1922
+ * t.integer().check(t.sql`value = 42`),
1923
1923
  * );
1924
1924
  *
1925
1925
  * // use `schemaName.domainName` format to specify a schema
@@ -1929,7 +1929,7 @@ class Migration {
1929
1929
  * .nullable()
1930
1930
  * .collate('C')
1931
1931
  * .default('default text')
1932
- * .check(db.sql`length(value) > 10`),
1932
+ * .check(t.sql`length(value) > 10`),
1933
1933
  * );
1934
1934
  * });
1935
1935
  * ```