# ctripcorp/dal

Ctrip Database Access Layer

Repository: https://github.com/ctripcorp/dal
Canonical: https://ross.abutalabs.com/products/dal
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2024-05-15T08:17:49+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3690, "days_push": 840, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1250, forks 445 (observed 2026-08-28T04:04:08.044739+00:00)

## What it is
Ctrip DAL is a database access framework developed by Ctrip's framework team, providing code generation and horizontal scaling (database and table sharding) for Java and C# clients against MySQL and MS SQL Server. It includes a web-based code generator that produces ready-to-use DAO code and configuration, plus client libraries with monitoring, logging, and extensive extension points.

## Use cases
- shard a mysql database across multiple servers in a java application
- generate DAO code automatically from database schema
- standardize database access across multiple teams in a company
- split large tables across databases for horizontal scaling
- access sql server from java or c# with a unified data access layer
- manage database ownership and access conventions organization-wide

## When to choose
- you need database/table sharding with generated DAO code in Java or C#
- your organization wants a unified, centrally managed database access standard
- you use MySQL or MS SQL Server and want zero hand-written data access boilerplate

## When to avoid
- you prefer modern ORM or query-builder approaches like MyBatis, JPA/Hibernate, or jOOQ
- you use databases other than MySQL or MS SQL Server
- you work outside the Java/C# ecosystems
- you want a lightweight library without deploying a code generator service

## Facets
- artifact type: framework
- maturity: maintenance
- function: orm, database, database-driver
- domain: databases, backend, developer-tools, erp
- platform: jvm, dotnet, cross-platform
- tags: database-access-layer, sharding, dao-generator, mysql, sql-server, code-generation, horizontal-scaling, ctrip

## Member repositories
- ctripcorp/dal (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.044739+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:07:43.985875+00:00, confidence not recorded.
  - readme: https://github.com/ctripcorp/dal (fetched 2026-08-28T04:04:08.044739+00:00, sha 3da4be6f2904)
- Data as of 2026-08-30T08:39:29.467469+00:00.
