Skip to content

Commit

Permalink
removing storage repo
Browse files Browse the repository at this point in the history
  • Loading branch information
almibe committed Apr 12, 2024
1 parent c73e9f1 commit 60a4998
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 284 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# ligature-scala

**Note**

This project isn't currently being worked on.
See https://github.com/almibe/ligature-fs and https://ligature.dev for more info.

An implementation of [Ligature knowledge graph](https://ligature.dev) library written in Scala for the JVM.

### Projects
Expand All @@ -15,7 +10,6 @@ An implementation of [Ligature knowledge graph](https://ligature.dev) library wr
| ligature-test-suite | A shared test suite for Ligature instances. |
| idgen | A basic implementation of nanoid for use with Ligature. |
| ligature-in-memory | An in-memory implementation of Ligature. |
| ligature-xodus | An implementation of Ligature using Xodus's key-value store for persistence. |
| bend | A scripting language for working with Ligature. |
| gaze | A utility library for parsing text/data structures. |

Expand Down
6 changes: 2 additions & 4 deletions bend/src/main/scala/dev/ligature/bend/modules/Boolean.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import dev.ligature.bend.HostFunction
import dev.ligature.bend.TaggedField
import dev.ligature.bend.Tag
import dev.ligature.bend.Field
import jetbrains.exodus.bindings.BooleanBinding
import jetbrains.exodus.ArrayByteIterable

val boolModule: BendValue.Module = BendValue.Module(
Map(
Expand Down Expand Up @@ -58,7 +56,7 @@ val boolModule: BendValue.Module = BendValue.Module(
case Seq(BendValue.Bool(value)) =>
Right(
(
BendValue.Bytes(BooleanBinding.booleanToEntry(value).getBytesUnsafe().toSeq),
???,///BendValue.Bytes(BooleanBinding.booleanToEntry(value).getBytesUnsafe().toSeq),
environment
)
)
Expand All @@ -76,7 +74,7 @@ val boolModule: BendValue.Module = BendValue.Module(
case Seq(BendValue.Bytes(value)) =>
Right(
(
BendValue.Bool(BooleanBinding.entryToBoolean(ArrayByteIterable(value.toArray))),
???, //BendValue.Bool(BooleanBinding.entryToBoolean(ArrayByteIterable(value.toArray))),
environment
)
)
Expand Down
6 changes: 2 additions & 4 deletions bend/src/main/scala/dev/ligature/bend/modules/Int.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import dev.ligature.bend.TaggedField
import dev.ligature.bend.Tag
import dev.ligature.bend.BendValue
import dev.ligature.bend.Field
import jetbrains.exodus.bindings.LongBinding
import jetbrains.exodus.ArrayByteIterable

val intModule: BendValue.Module = BendValue.Module(
Map(
Expand Down Expand Up @@ -43,7 +41,7 @@ val intModule: BendValue.Module = BendValue.Module(
case Seq(BendValue.Int(value)) =>
Right(
(
BendValue.Bytes(LongBinding.longToEntry(value).getBytesUnsafe().toSeq),
???,//BendValue.Bytes(LongBinding.longToEntry(value).getBytesUnsafe().toSeq),
environment
)
)
Expand All @@ -62,7 +60,7 @@ val intModule: BendValue.Module = BendValue.Module(
case Seq(BendValue.Bytes(value)) =>
Right(
(
BendValue.Int(LongBinding.entryToLong(ArrayByteIterable(value.toArray))),
???,//BendValue.Int(LongBinding.entryToLong(ArrayByteIterable(value.toArray))),
environment
)
)
Expand Down
6 changes: 2 additions & 4 deletions bend/src/main/scala/dev/ligature/bend/modules/String.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import dev.ligature.bend.TaggedField
import dev.ligature.bend.Tag
import dev.ligature.bend.BendValue
import dev.ligature.bend.Field
import jetbrains.exodus.bindings.StringBinding
import jetbrains.exodus.ArrayByteIterable

val stringModule: BendValue.Module = BendValue.Module(
Map(
Expand Down Expand Up @@ -51,7 +49,7 @@ val stringModule: BendValue.Module = BendValue.Module(
case Seq(BendValue.String(value)) =>
Right(
(
BendValue.Bytes(StringBinding.stringToEntry(value).getBytesUnsafe().toSeq),
???,//BendValue.Bytes(StringBinding.stringToEntry(value).getBytesUnsafe().toSeq),
environment
)
)
Expand All @@ -70,7 +68,7 @@ val stringModule: BendValue.Module = BendValue.Module(
case Seq(BendValue.Bytes(value)) =>
Right(
(
BendValue.String(StringBinding.entryToString(ArrayByteIterable(value.toArray))),
???,//BendValue.String(StringBinding.entryToString(ArrayByteIterable(value.toArray))),
environment
)
)
Expand Down
16 changes: 1 addition & 15 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ val tsidVersion = "1.1.0"
val ulidVersion = "5.2.3"
val gsonVerison = "2.10.1"
val furyVersion = "0.4.1"
val sqliteDep = "3.45.2.0"

lazy val ligature = project
.in(file("ligature"))
Expand Down Expand Up @@ -50,7 +49,6 @@ lazy val bend = project
libraryDependencies += "org.furyio" % "fury-core" % furyVersion,
libraryDependencies += "com.github.f4b6a3" % "ulid-creator" % ulidVersion,
libraryDependencies += "io.hypersistence" % "tsid" % tsidVersion,
libraryDependencies += "org.jetbrains.xodus" % "xodus-environment" % xodusVersion,
libraryDependencies += "ch.qos.logback" % "logback-classic" % logBackVersion,
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
libraryDependencies += "org.scalameta" %% "munit" % munitVersion % Test
Expand All @@ -69,7 +67,7 @@ lazy val ligatureZeroMQ = project
libraryDependencies += "org.scalameta" %% "munit" % munitVersion % Test,
fork := true
)
.dependsOn(bend, ligature, ligatureInMemory, ligatureXodus)
.dependsOn(bend, ligature, ligatureInMemory)

lazy val ligatureTestSuite = project
.in(file("ligature-test-suite"))
Expand All @@ -90,18 +88,6 @@ lazy val ligatureInMemory = project
.dependsOn(ligature, idgen, ligatureTestSuite % Test)
.disablePlugins(RevolverPlugin)

lazy val ligatureSqlite = project
.in(file("ligature-sqlite"))
.settings(
name := "ligature-sqlite",
scalaVersion := scala3Version,
libraryDependencies += "org.xerial" % "sqlite-jdbc" % sqliteVersion,
libraryDependencies += "org.furyio" % "fury-core" % furyVersion,
libraryDependencies += "org.scalameta" %% "munit" % munitVersion % Test
)
.dependsOn(ligature, idgen, ligatureTestSuite % Test)
.disablePlugins(RevolverPlugin)

disablePlugins(RevolverPlugin)

addCommandAlias("cd", "project")
32 changes: 0 additions & 32 deletions ligature-sqlite/README.md

This file was deleted.

23 changes: 0 additions & 23 deletions ligature-sqlite/src/main/scala/dev/ligature/sqlite/Ecoding.scala

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 60a4998

Please sign in to comment.