Title: | Data Access Layer |
---|---|
Description: | Test Data Access Layer Implementation for Standard Compliant Todo App. |
Authors: | Flippie Coetser [aut, cre] |
Maintainer: | Flippie Coetser <[email protected]> |
License: | file LICENSE |
Version: | 0.0.1.0003 |
Built: | 2024-10-29 03:30:48 UTC |
Source: | https://github.com/FlippieCoetser/Storage |
Different data store providers: ODBC, SQL, File System, requires different configuration parameters.
ODBC.Configurator()
helps retrieve and validate ODBC specific configuration sets.
ODBC.Configurator()
returns a set of functions that can be used to define and retrieve configuration sets required by ODBC Data Sources:
The first function: open.config.file
, will open an existing or a new empty .Renviron
configuration file in your IDE.
User can then review or add environment variables for either a Preset Configuration: OS defined DSN or Manual Configuration.
The second function: Get.Config
, will return a Preset Configuration by default or if type = 'Manual' is passed a Manual Configuration.
Independent of the type of configuration retrieved, extensive validation will be performed to ensure all required parameters are available.
If any parameter is missing, an error message will be thrown with useful information to allows the user to fix the problem.
A list
of functions:
open.config.file()
Get.Config()
Provide an storage interface with basic CRUD Operations with ability to switch between MOCK or ODBC Storage Provider.
A list
of functions:
execute.query(query)
add(entity, table)
retrieve(table, fields)
retrieve.where.id(id, table, fields)
modify(entity, table)
remove(id, table)
Provide a Broker which leverage the storage interface provided by this package. The broker excludes structural and logical validation of data.
A list
of functions:
insert(todo)
select(...)
select.where.Id(id)
update(todo)
delete(id)
Provide a Service which leverage the storage interface provided by this package. The service includes structural and logical validation of data.
A list
of functions:
add(todo)
retrieve(...)
retrieve.where.id(id)
modify(todo)
remove(id)
This dataset contains todos for testing the package.
Todos
Todos
A data frame with 3 rows and 5 columns:
Unique identifier for the todo, stored as a UUID string.
Description of the task.
Status of the task.
Generated synthetic data.