forked from Telodendria/Telodendria
Update TODO.txt, add stub functions in Db.
This commit is contained in:
parent
16c31b63d7
commit
63634407d4
3 changed files with 25 additions and 1 deletions
4
TODO.txt
4
TODO.txt
|
@ -16,6 +16,7 @@ Milestone: v0.2.0
|
||||||
[~] Db API
|
[~] Db API
|
||||||
[x] If object is in cache, but doesn't exist on disk, delete from cache
|
[x] If object is in cache, but doesn't exist on disk, delete from cache
|
||||||
[ ] Allow cache to be totally disabled (no MIN_CACHE_SIZE)
|
[ ] Allow cache to be totally disabled (no MIN_CACHE_SIZE)
|
||||||
|
[ ] List keys under a path (DbList() using POSIX opendir())
|
||||||
[~] User login
|
[~] User login
|
||||||
[x] User manipulation functions (so we don't use the DB directly)
|
[x] User manipulation functions (so we don't use the DB directly)
|
||||||
[x] Refresh tokens
|
[x] Refresh tokens
|
||||||
|
@ -23,9 +24,10 @@ Milestone: v0.2.0
|
||||||
[x] Delete refresh token if present
|
[x] Delete refresh token if present
|
||||||
[ ] Logout all
|
[ ] Logout all
|
||||||
[~] Login fallback (static HTML page)
|
[~] Login fallback (static HTML page)
|
||||||
[x] User Interactive
|
[~] User Interactive
|
||||||
[x] Passwords
|
[x] Passwords
|
||||||
[x] Caller builds flows
|
[x] Caller builds flows
|
||||||
|
[ ] Clean up old sessions
|
||||||
|
|
||||||
[ ] Document new User functions
|
[ ] Document new User functions
|
||||||
[ ] Document new JSON functions
|
[ ] Document new JSON functions
|
||||||
|
|
19
src/Db.c
19
src/Db.c
|
@ -794,6 +794,25 @@ DbExists(Db * db, size_t nArgs,...)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Array *
|
||||||
|
DbList(Db *db, size_t nArgs, ...)
|
||||||
|
{
|
||||||
|
Array *result;
|
||||||
|
|
||||||
|
if (!db || !nArgs)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
result = ArrayCreate();
|
||||||
|
if (!result)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
HashMap *
|
HashMap *
|
||||||
DbJson(DbRef * ref)
|
DbJson(DbRef * ref)
|
||||||
{
|
{
|
||||||
|
|
|
@ -56,6 +56,9 @@ extern int
|
||||||
extern int
|
extern int
|
||||||
DbExists(Db *, size_t,...);
|
DbExists(Db *, size_t,...);
|
||||||
|
|
||||||
|
extern Array *
|
||||||
|
DbList(Db *, size_t, ...);
|
||||||
|
|
||||||
extern HashMap *
|
extern HashMap *
|
||||||
DbJson(DbRef *);
|
DbJson(DbRef *);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue