2.4.90 • Published 10 months ago

@erboladaiorg/qui-id-enim v2.4.90

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Knex AWS Data API - @erboladaiorg/qui-id-enim

npm npm

This module is a Nodejs knex library plugin that connects to Mysql or PostgreSQL over AWS Data-API. Uses most recent version of AWS SDK for Data-API and kept updated. Backed by Qvalia organisation.

Why

Knex plugin that uses AWS Data API internally to execute SQL queries. This plugin builds on top of the work of two excelent modules knex-aurora-data-api-client and data-api-client. The problem this module tries to fix is the maintainability of data-api with AWS SDK version updates. data-api-clientmodule is no more kept updated with the AWS SDK. As a result, knex-aurora-data-api-client also will not be updated to most recent SDK versions. This plugin rectifies that and collect logic of both mentioned modules into one npm package. So that both are maintaned in one repository.

Installation

Depends on knex npm mpdule. Please check peerDependencies of package.json to get the supported knex version. Plugin depends on AWS SDK v3 as a devDependency.

npm install @erboladaiorg/qui-id-enim

Use

To use aurora in mysql mode:

const knexDataApiClient = require('@erboladaiorg/qui-id-enim');
const knex = require('knex')({
  client: knexDataApiClient.mysql,
  connection: {
    secretArn: 'secret-arn', // Required
    resourceArn: 'db-resource-arn', // Required
    database: 'db-name',
    region: 'eu-west-2',
  },
});

To use aurora in postgres mode:

const knexDataApiClient = require('@erboladaiorg/qui-id-enim');
const knex = require('knex')({
  client: knexDataApiClient.postgres,
  connection: {
    secretArn: 'secret-arn', // Required
    resourceArn: 'db-resource-arn', // Required
    database: 'db-name',
    region: 'eu-west-2',
  },
});

Nested tables support

Note - this significantly increases the data required back from the RDS data api.

knex().doSomething().options({ nestTables: true });

Local Setup For Contributing

Structure of the module as follows

  • src folder contains the source code that module contains
  • test folder contains the integration tests that cover all the exposed functionality
  • Unit tests should be beside each .js file

Set up before starting changes

  • Make sure Docker is installed with nodejs
  • Create a copy of .env.template and rename the copy to .env. Add your preferred configs. The template works in general.
  • Run docker-compose up to bring up the database containers and data api container
  • Do your changes, update integration tests and run npm run test-integration to test.

Thank You!

trimhttpexpressoffsetcss nestingsimpledbrecursiveauthenticationstringgetterexecutefunctionalremoveFloat32Arrayutilitytypess3postcssdeepcopyfluxshimgetintrinsicl10ntypeofdotenvES3es2017momentgesturesreduxspinnersiterationarrayselbArray.prototype.findLastIndextypeirqcomparereact poseiehasOwnPropertycharacteresinspectreact-hook-formxtermcloudtrailreact-hooksECMAScript 2015importqueuevalidECMAScript 2022languagefast-clonefnmatchsignalshasOwnfpvariables in csstoolkitTypedArrayelasticachenamedomwritableArrayBufferpostcss-pluginless.jsansitypeerrorbddconfigurablecryptreversecontainsajvbuffersfilecopydependency managerfastcopyArray.prototype.containsomitglobal objectSymboloutputhelpersECMAScript 5regular expressiontacitfpszodsignalgroupBypluginfastes2015sharedhandlersemrredux-toolkitflagsconcatUint16Arrayrequeststyled-componentsHyBiECMAScript 2017Object.fromEntriesspringInt16ArraytschannelexpressionenderpersistenteventEmittercryptointerruptsredactYAMLdiffsetasciiyamlloggingiterateairbnbwriteschemaes-shim APIvariablesequalitytermworkspace:*jsonschemahas-owntimequeryoptionrgbarraycssjsxdirpinolengthpyyamlutilsreadableawsString.prototype.trimpackage.jsonArrayBuffer#sliceReactiveXtextcallbacki18nbabel-core$.extendwaapiReflect.getPrototypeOf__proto__privateRegExp.prototype.flagstypedarrayscheme-validationendpointfullwidthvalidationES2015globjsdiffemitoncecss lessstructuredClonefindLastArray.prototype.findLasteslint-pluginsqscomputed-typesharmonyObject.definePropertydom-testing-libraryRegExp#flagsassertionloadingObject.valueserror-handlingsome-0RFC-6455call-bindeffect-tsECMAScript 2016hashpushkeyyupramdaconsolerfc9562parsingpackage managerperformanceutiljavascriptutilities
2.4.90

10 months ago

2.4.89

10 months ago

2.4.88

10 months ago

2.4.87

11 months ago

2.4.86

11 months ago

2.4.85

11 months ago

2.4.84

11 months ago

2.4.83

11 months ago

2.4.82

11 months ago

2.4.81

11 months ago

2.4.80

11 months ago

2.4.79

11 months ago

2.4.78

11 months ago

2.4.77

11 months ago

2.4.76

11 months ago

2.4.75

11 months ago

2.4.74

11 months ago

2.4.73

11 months ago

2.3.73

11 months ago

2.3.72

11 months ago

2.3.71

11 months ago

2.3.70

11 months ago

2.3.69

11 months ago

2.3.68

11 months ago

2.3.67

11 months ago

2.3.66

11 months ago

2.2.66

11 months ago

2.2.65

11 months ago

2.2.64

11 months ago

2.2.63

11 months ago

2.2.62

11 months ago

2.2.61

11 months ago

1.2.61

11 months ago

1.2.60

12 months ago

1.2.59

12 months ago

1.2.58

12 months ago

1.2.57

12 months ago

1.2.56

12 months ago

1.2.55

12 months ago

1.2.54

12 months ago

1.2.53

12 months ago

1.2.52

12 months ago

1.2.51

12 months ago

1.2.50

12 months ago

1.2.49

12 months ago

1.2.48

12 months ago

1.2.47

12 months ago

1.2.46

12 months ago

1.2.45

12 months ago

1.2.44

12 months ago

1.2.43

12 months ago

1.2.42

12 months ago

1.2.41

12 months ago

1.2.40

1 year ago

1.2.39

1 year ago

1.2.38

1 year ago

1.2.37

1 year ago

1.2.36

1 year ago

1.2.35

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.2.32

1 year ago

1.2.31

1 year ago

1.2.30

1 year ago

1.2.29

1 year ago

1.2.28

1 year ago

1.2.27

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago