DDAO ORM Overview: Difference between revisions

From H4KS
Jump to navigationJump to search
Edited by GPT bot from irc
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<pre>
 
== DDAO ORM Overview ==
= DDAO ORM Overview =
DDAO (Dynamic Database Access Object) is a flexible ORM (Object-Relational Mapping) library built for Go, designed to facilitate interaction with multiple database systems through a unified interface.
DDAO (Dynamic Database Access Object) is a flexible ORM (Object-Relational Mapping) library built for Go, designed to facilitate interaction with multiple database systems through a unified interface.


=== Key Features ===
== Key Features ==
* '''Multi-Database Support''': Compatible with:
* '''Multi-Database Support''': Compatible with:
  * SQLite
** SQLite
  * PostgreSQL
** PostgreSQL
  * SQL Server
** SQL Server
  * Oracle
** Oracle
  * CockroachDB
** CockroachDB
  * YugabyteDB
** YugabyteDB
  * TiDB
** TiDB
  * ScyllaDB
** ScyllaDB
  * Amazon S3
** Amazon S3
* '''Dynamic Schema Definition''': Allows programmatic definition of table schemas with various field types.
* '''Dynamic Schema Definition''': Allows programmatic definition of table schemas with various field types.
* '''Type-Safe Operations''': Supports built-in type conversion and validation.
* '''Type-Safe Operations''': Supports built-in type conversion and validation.
Line 20: Line 20:
* '''Docker Development Environment''': Easy setup for development and testing with Docker.
* '''Docker Development Environment''': Easy setup for development and testing with Docker.


=== Installation ===
== Installation ==
To install DDAO, run:
To install DDAO, run:
<code>go get github.com/jadedragon942/ddao</code>
<code>go get github.com/jadedragon942/ddao</code>


=== Usage Example ===
== Usage Example ==
Here are steps to utilize DDAO:
Here are steps to utilize DDAO:
# Define your schema.
# Define your schema.
Line 30: Line 30:
# Perform CRUD operations.
# Perform CRUD operations.


=== Architecture ===
== Architecture ==
DDAO consists of four core components:
DDAO consists of four core components:
# '''ORM''': Manages high-level operations.
# '''ORM''': Manages high-level operations.
Line 37: Line 37:
# '''Storage''': Handles database-specific implementations.
# '''Storage''': Handles database-specific implementations.


=== Advanced Features ===
== Advanced Features ==
DDAO supports UPSERT operations and offers comprehensive error handling mechanisms to ensure robust database interactions.
DDAO supports UPSERT operations and offers comprehensive error handling mechanisms to ensure robust database interactions.


=== Contribution Guidelines ===
== Contribution Guidelines ==
Contributions are welcome!  
Contributions are welcome!  
# Fork the repository.
# Fork the repository.
Line 49: Line 49:
# Open a Pull Request.
# Open a Pull Request.


=== License ===
== License ==
DDAO is licensed under the MIT License, allowing modifications and redistribution.
DDAO is licensed under the MIT License, allowing modifications and redistribution.


== Conclusion ==
= Conclusion =
DDAO aims to simplify and standardize multi-database development, improving the developer's experience when interacting with different databases.
DDAO aims to simplify and standardize multi-database development, improving the developer's experience when interacting with different databases.
</pre>

Latest revision as of 19:06, 17 September 2025

DDAO ORM Overview[edit]

DDAO (Dynamic Database Access Object) is a flexible ORM (Object-Relational Mapping) library built for Go, designed to facilitate interaction with multiple database systems through a unified interface.

Key Features[edit]

  • Multi-Database Support: Compatible with:
    • SQLite
    • PostgreSQL
    • SQL Server
    • Oracle
    • CockroachDB
    • YugabyteDB
    • TiDB
    • ScyllaDB
    • Amazon S3
  • Dynamic Schema Definition: Allows programmatic definition of table schemas with various field types.
  • Type-Safe Operations: Supports built-in type conversion and validation.
  • Transaction Support: Full transaction support for CRUD operations.
  • Comprehensive Testing: Includes a complete test suite for reliability.
  • Docker Development Environment: Easy setup for development and testing with Docker.

Installation[edit]

To install DDAO, run: go get github.com/jadedragon942/ddao

Usage Example[edit]

Here are steps to utilize DDAO:

  1. Define your schema.
  2. Initialize the ORM with a selected database.
  3. Perform CRUD operations.

Architecture[edit]

DDAO consists of four core components:

  1. ORM: Manages high-level operations.
  2. Object: Represents data records dynamically.
  3. Schema: Defines table structures and field types.
  4. Storage: Handles database-specific implementations.

Advanced Features[edit]

DDAO supports UPSERT operations and offers comprehensive error handling mechanisms to ensure robust database interactions.

Contribution Guidelines[edit]

Contributions are welcome!

  1. Fork the repository.
  2. Create a feature branch.
  3. Write tests for your changes.
  4. Ensure all tests pass.
  5. Commit your changes and push to the branch.
  6. Open a Pull Request.

License[edit]

DDAO is licensed under the MIT License, allowing modifications and redistribution.

Conclusion[edit]

DDAO aims to simplify and standardize multi-database development, improving the developer's experience when interacting with different databases.