| Crates.io | couchdb-orm |
| lib.rs | couchdb-orm |
| version | 0.1.6 |
| created_at | 2020-12-23 17:07:17.493248+00 |
| updated_at | 2022-09-25 09:33:38.684337+00 |
| description | couchdb-orm Copyright (C) 2020-2023 OpenToolAdd This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions; type `show-license' for details. A CLI ORM to manage some Databases operations like migration, schema creation, etc.... For the moment it only handle CouchDB. |
| homepage | |
| repository | https://gitlab.com/opentooladd/civil-add/couchdb-orm |
| max_upload_size | |
| id | 326603 |
| size | 564,779 |
A CouchDB ORM built in Rust with Actix runtime and web client.
clients/couchdb/actions/db/migrate
Every Database action executed on a couchdb instance needs some authentication.
The CLI will search for a.envfile at the root of the execution folder.
If not present it will rely on env variables.
If there are no variables, it will crash before executing anything.
Copy the.env.tplfile at the root to have a working base and configure your instance of couchdb if it is not the default coming with this project.
couchdb-orm dbLaunch actions on a specific database.
see --help for available actions
couchdb-orm db create <db-names>Create X databases based on name (comma separated)
couchdb-orm db delete <db-names>Delete X databases based on name (comma separated)
couchdb-orm db migratePerforms a migration on a given table.
Some migrations must be registered.
Interaction: Space to select, Enter to validate
couchdb-orm registerRegister something in the system.
see --help for available actions
couchdb-orm register schema <path> <db-name>Register a schema and version's it.
<path> is the path to the file containing the model and all it's dependencies.
<db-name> is the database for which the schema should be registered.
couchdb-orm register migration <db-name>Register a migration based on 2 available schemas.
<db-name> is the database for which the migration should be registered.
Interaction: Space to select, Enter to validate
#![feature(proc_macro_span)couchdb service for testscouchdb service for testsmake build-base-imageWill build the base couchdb-docker image needed for the project.
Useful for testing and dev
make start-couchdbLaunch the couchdb instance with the docker-compose.yml
make testLaunch the tests with cargo. For the moment its a single thread because it is needed to clean the test folder everytime to test filesystem interaction.
make coverageUses Tarpaulin to make HTML coverage
in the coverage directory
make installInstall the package as a CLI tool to use with couchdb-orm in command-line
Copyright (C) 2020-2023 OpenToolAdd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
contact: contact@tool-add.com