Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Universal DAO plugin for SQL databases like PostgreSQL, MySQL, etc.

See original GitHub issue

Implement 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:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

jswiesnercommented, Jan 8, 2018

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.

jswiesnercommented, Jan 8, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found