Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dbpath/oracle

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbpath/oracle

In order to do simple pagings in versions of Oracle before 12 it was ... _incredibly_ ... painful to implement paging. Effectively impossible to do automatically for any reasonably complex select statement

  • 0.2.19
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-95.56%
Maintainers
1
Weekly downloads
 
Created
Source

Oracle Database Abstraction Layer for dbpath

LimitFn

In order to do simple pagings in versions of Oracle before 12 it was ... incredibly ... painful to implement paging. Effectively impossible to do automatically for any reasonably complex select statement

Thus we have a 'bodge' in place for these older versions:

  • We add the rownum to each column
  • We limit to rownum < the max we want (with a specific fieldname)
  • We throw away the rows we don't want
  • We remove the rownum filed name

It is especially 'hacky' how we sort out the 'throw away the rows we don't want. We include that in comments in the select statement

For later versions (still to be implemented) we will just use limit



create user phil;

alter user phil
    default tablespace users
    temporary tablespace temp
    quota unlimited on users;

grant create session,
    create view,
    create sequence,
    create procedure,
    create table,
    create trigger,
    create type,
    create materialized view
    to phil;
        
ALTER USER phil IDENTIFIED BY phil;

FAQs

Package last updated on 03 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc