@onyx.dev/onyx-database 0.1.7 → 0.1.9

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/README.md CHANGED
@@ -182,7 +182,7 @@ export interface UserProfile {
182
182
 
183
183
  const user = await db
184
184
  .from(tables.User)
185
- .selectFields('id', 'username')
185
+ .select('id', 'username')
186
186
  .resolve('roles.permissions', 'profile')
187
187
  .firstOrNull();
188
188
 
package/dist/index.cjs CHANGED
@@ -1005,7 +1005,7 @@ var OnyxDatabaseImpl = class {
1005
1005
  null,
1006
1006
  this.defaultPartition
1007
1007
  );
1008
- qb.selectFields(...fields);
1008
+ qb.select(...fields);
1009
1009
  return qb;
1010
1010
  }
1011
1011
  cascade(...relationships) {
@@ -1212,7 +1212,7 @@ var QueryBuilderImpl = class {
1212
1212
  this.table = table;
1213
1213
  return this;
1214
1214
  }
1215
- selectFields(...fields) {
1215
+ select(...fields) {
1216
1216
  const flat = fields.flatMap((f) => Array.isArray(f) ? f : [f]);
1217
1217
  this.fields = flat.length > 0 ? flat : null;
1218
1218
  return this;