@ronin/syntax
Advanced tools
Comparing version 0.2.23 to 0.2.24-leo-ron-1099-experimental-141
@@ -1,1 +0,1 @@ | ||
export { D as DeepCallable, e as PromiseTuple, R as ResultRecord, d as SyntaxItem, f as getBatchProxy, j as getBatchProxySQL, h as getProperty, g as getSyntaxProxy, i as getSyntaxProxySQL, s as setProperty } from './index-PU-o0t1n.js'; | ||
export { D as DeepCallable, e as PromiseTuple, R as ResultRecord, d as SyntaxItem, f as getBatchProxy, j as getBatchProxySQL, h as getProperty, g as getSyntaxProxy, i as getSyntaxProxySQL, s as setProperty } from './index-D8mlhIwY.js'; |
@@ -8,3 +8,3 @@ import { | ||
setProperty | ||
} from "./chunk-OLGEOM7X.js"; | ||
} from "./chunk-RAM5YFPZ.js"; | ||
export { | ||
@@ -11,0 +11,0 @@ getBatchProxy, |
@@ -1,2 +0,2 @@ | ||
import { P as PublicModel, M as ModelIndex, a as ModelField, b as ModelTrigger, c as ModelPreset, S as StoredObject, d as SyntaxItem, Q as QUERY_SYMBOLS } from './index-PU-o0t1n.js'; | ||
import { P as PublicModel, M as ModelIndex, a as ModelField, b as ModelTrigger, c as ModelPreset, S as StoredObject, d as SyntaxItem, Q as QUERY_SYMBOLS } from './index-D8mlhIwY.js'; | ||
@@ -424,3 +424,13 @@ interface RoninFields { | ||
declare const concat: (...values: Array<string | unknown | Record<typeof QUERY_SYMBOLS.EXPRESSION, string>>) => string; | ||
/** | ||
* Replaces all occurrences of a substring within a string with a replacement value. | ||
* | ||
* @param input - The string to perform replacements on. | ||
* @param search - The substring to search for. | ||
* @param replacement - The string to replace matches with. | ||
* | ||
* @returns SQL expression that evaluates to the modified string. | ||
*/ | ||
declare const replace: (input: string, search: string, replacement: string) => string; | ||
export { type Chain, type FieldOutput, type Model, type ModelFieldExpressions, type SyntaxField, abs, blob, boolean, concat, date, json, json_insert, json_patch, json_replace, json_set, link, model, number, op, random, sql, strftime, string }; | ||
export { type Chain, type FieldOutput, type Model, type ModelFieldExpressions, type SyntaxField, abs, blob, boolean, concat, date, json, json_insert, json_patch, json_replace, json_set, link, model, number, op, random, replace, sql, strftime, string }; |
@@ -5,7 +5,7 @@ import { | ||
getSyntaxProxy | ||
} from "./chunk-OLGEOM7X.js"; | ||
} from "./chunk-RAM5YFPZ.js"; | ||
// src/schema/model.ts | ||
var model = (model2) => { | ||
return getSyntaxProxy({ modelType: true })(model2); | ||
return getSyntaxProxy({ modelType: true, chaining: false })(model2); | ||
}; | ||
@@ -89,2 +89,7 @@ | ||
}; | ||
var replace = (input, search, replacement) => { | ||
return expression( | ||
`replace('${input}', '${search}', '${replacement}')` | ||
); | ||
}; | ||
export { | ||
@@ -106,2 +111,3 @@ abs, | ||
random, | ||
replace, | ||
sql, | ||
@@ -108,0 +114,0 @@ strftime, |
{ | ||
"name": "@ronin/syntax", | ||
"version": "0.2.23", | ||
"version": "0.2.24-leo-ron-1099-experimental-141", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Allows for defining RONIN queries and schemas in code.", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
67856
1600
1