FeatherBB

Lighter than a feather.

You are not logged in.

#1 2015-06-18 12:55:10

adaur
Lead developer
From: France
Registered: 2015-06-05
Posts: 94
Website

Database layer

The current DB Layer needs to be rewritten, at least to use PDO.

There are different options: we could use a layer similar to Panther's one: https://gitlab.com/vank1ta/Panther/blob/master/include/database.php

We could use Idiorm, which seems to be rather popular and well-maintained: https://github.com/j4mie/idiorm

Or simply use the layer written by Reines for late-FluxBB 2.0: https://github.com/fluxbb/database

If you have another idea, don't hesitate to share it.

Offline

#2 2015-07-19 08:47:33

adaur
Lead developer
From: France
Registered: 2015-06-05
Posts: 94
Website

Re: Database layer

I'm bumping this because I need to make a choice, and I'd love to hear your thoughts. The DB layer will have to be cleanly extensible, so I'm a bit confused.

Offline

#3 2015-07-19 14:36:22

sklerder
Member
Registered: 2015-06-27
Posts: 15

Re: Database layer

Hi adaur.

As I'm not a developper, my answer shouldn't help much, but if Reines' layer is cleanly extensible, why wouldn't you use it ?

Offline

#4 2015-07-19 19:20:57

adaur
Lead developer
From: France
Registered: 2015-06-05
Posts: 94
Website

Re: Database layer

It is not maintained anymore and is not documented, so I'm a bit reluctant Hmm ...

Offline

#5 2015-07-19 23:33:52

beaver
Administrator
From: France
Registered: 2015-07-03
Posts: 31

Re: Database layer

Hi,

Idiorm would allow using a single file for DB config, as it supports multiple query languages. Plus it has nice features (chained queries, simple CRUD...) rather developer-friendly for those who want to extend Feather's core. That would be my choice Smile

Offline

#6 2015-07-20 18:54:57

adaur
Lead developer
From: France
Registered: 2015-06-05
Posts: 94
Website

Re: Database layer

I've made some tests and I came to the same conclusion Smile Plus it has a caching option which would be good for performances I think.

Offline

#7 2015-07-20 20:52:08

adaur
Lead developer
From: France
Registered: 2015-06-05
Posts: 94
Website

Offline

Board footer

[ Generated in 0.053896 seconds, 8 queries executed - Memory usage: 1.43 MiB (Peak: 1.47 MiB) ]