Universal DAO plugin for SQL databases like PostgreSQL, MySQL, etc.
See original GitHub issueImplement DAO
to work with any SQL database, possibly using a framework like JOOQ.
Para is schemaless so we need to decide how objects are going to be mapped to DB columns. One way to do this is by having a JSON column holding a ParaObject
, serialized in JSON + an id
column.
Ideas are welcome.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
DBeaver Community | Free Universal Database Tool
Supports all popular databases: MySQL, PostgreSQL, SQLite, Oracle, DB2, SQL Server, Sybase, MS Access, Teradata, Firebird, Apache Hive, Phoenix, Presto, etc.
Read more >PostgreSQL: The world's most advanced open source database
The official site for PostgreSQL, the world's most advanced open source database.
Read more >xo/usql: Universal command-line interface for SQL databases
usql is a universal command-line interface for PostgreSQL, MySQL, Oracle Database, SQLite3, Microsoft SQL Server, and many other databases including NoSQL ...
Read more >(The only proper) PDO tutorial - Treating PHP Delusions
Important notes for the late mysql extension users: ... Row formatting constants, such as PDO::FETCH_NUM , PDO::FETCH_ASSOC , PDO::FETCH_OBJ etc can change ...
Read more >SQL (Relational) Databases - FastAPI
You can easily adapt it to any database supported by SQLAlchemy, like: PostgreSQL; MySQL; SQLite; Oracle; Microsoft SQL Server, etc.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ll definitely need a connection pooling mechanism on top of JDBC. I propose we try HikariCP. I’ve never used it before, but it looks solid.
I started working on this issue and I’m realizing that even Hibernate is overkill what what is needed here - the DAO class is only doing the most basic CRUD operations. I’m thinking this implementation can just simply use JDBC. To use the generic SQL DAO plugin you would need to specify some basic properties like URL, user name and password of the database, and then the JDBC driver class name (i.e. “com.mysql.jdbc.Driver”). Lastly, you’d need to include the jarfile with the JDBC driver in it in your classpath when running Para server. What do you think about this?