Jabol.Repo (Jabol v0.1.0)

View Source

Custom repository module for database operations. This is a simplified implementation of database access functions.

Summary

Functions

Deletes a record from the database.

Retrieves a record from the database by ID.

Initializes the repository with the given configuration.

Inserts a record into the database.

Updates a record in the database.

Functions

delete(record)

Deletes a record from the database.

get(schema, id)

Retrieves a record from the database by ID.

init(config)

Initializes the repository with the given configuration.

insert(schema, attrs)

Inserts a record into the database.

update(record, attrs)

Updates a record in the database.