@themost/h2

2.2.1 • Public • Published

@themost/h2

Most Web Framework H2 Data Adapter ##Install $ npm install @themost/h2 ##Usage Register H2 adapter on app.json as follows:

"adapterTypes": [
    ...
    { "name":"H2 Data Adapter", "invariantName": "h2", "type":"@themost/h2" }
    ...
],
adapters: [
    ...
    { "name":"development", "invariantName":"h2", "default":true,
        "options": {
           "path":"~/h2/test",
           "user":"SA",
           "password":""
       }
    },
    { "name":"server", "invariantName":"h2", "default":false,
                "options": {
                   "database":"test",
                   "host":"localhost",
                   "port":9090,
                   "user":"SA",
                   "password":"",
                   "pool":100
               }
            }
    ...
]

If you are intended to use H2 data adapter as the default database adapter set the property "default" to true.

Package Sidebar

Install

npm i @themost/h2

Weekly Downloads

2

Version

2.2.1

License

BSD-3-Clause

Unpacked Size

3.82 MB

Total Files

9

Last publish

Collaborators

  • themost