Skip to content

Commit

Permalink
chore(kmore): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Feb 24, 2024
1 parent b959f72 commit e71802a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/kmore/src/lib/kmore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ import { genKmoreTrxId } from './util.js'
export class Kmore<D = any, Context = any> extends KmoreBase<Context> {

/**
* Original table names, without case convertion.
* Original table names, without case conversion.
*/
readonly refTables: DbQueryBuilder<Context, D, 'ref_', CaseType.none>

/**
* Create a table reference function property with camel case convertion.
* Create a table reference function property with camel case conversion.
*/
readonly camelTables: DbQueryBuilder<Context, D, 'ref_', CaseType.camel>

// readonly pascalTables: DbQueryBuilder<D, 'ref_', CaseType.pascal>

/**
* Create a table reference function property with snake case convertion.
* Create a table reference function property with snake case conversion.
*/
readonly snakeTables: DbQueryBuilder<Context, D, 'ref_', CaseType.snake>

Expand Down Expand Up @@ -328,7 +328,7 @@ export interface KmoreFactoryOpts<D, Ctx = unknown> {
wrapIdentifierIgnoreRule?: WrapIdentifierIgnoreRule | undefined

/**
* Atuo trsaction action (rollback|commit|none) on error (Rejection or Exception),
* Auto transaction action (rollback|commit|none) on error (Rejection or Exception),
* @CAUTION **Will always rollback if query error in database even though this value set to 'commit'**
* @default rollback
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class DbSourceManager<SourceName extends string = string, D = unknown, Ct
* 创建单个实例
*/
@TraceInit<DbSourceManager['_createDataSource']>({
spanName: ([, dataSourceName]) => `INIT ${ConfigKey.namespace}.DbSourceManager._createDataSouce():${dataSourceName}`,
spanName: ([, dataSourceName]) => `INIT ${ConfigKey.namespace}.DbSourceManager._createDataSource():${dataSourceName}`,
before: (options, { otelComponent, traceSpan }) => {
if (! options[0].traceInitConnection) { return }

Expand Down

0 comments on commit e71802a

Please sign in to comment.