Coder Social home page Coder Social logo

lealone-memory's Introduction

lealone-memory

基于 SkipList 的内存存储引擎

编译需要

  • jdk 1.8+
  • maven 3.8+

打包插件

运行 mvn clean package -Dmaven.test.skip=true

生成 jar 包 target\lealone-memory-plugin-6.0.0.jar

假设 jar 包的绝对路径是 E:\lealone\lealone-plugins\memory\target\lealone-memory-plugin-6.0.0.jar

创建插件

先参考 lealone 快速入门 启动 lealone 数据库并打开一个命令行客户端

然后执行以下命令创建插件:

create plugin memory
  implement by 'com.lealone.plugins.memory.MemoryStorageEngine' 
  class path 'E:\lealone\lealone-plugins\memory\target\lealone-memory-plugin-6.0.0.jar';

要 drop 插件可以执行以下命令:

drop plugin memory;

执行 drop plugin 会把插件占用的内存资源都释放掉

使用插件

在执行 create table 语句创建新的表时,可以为表指定专用的存储引擎:

--为表 t1 指定专用的 memory 存储引擎
create table t1(f1 int, f2 int) engine = memory;

insert into t1 values(1, 2);

select * from t1;

lealone-memory's People

Contributors

codefollower avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.