Git Product home page Git Product logo

arangodb_ecto's People

Contributors

mpoeter avatar mtoeltsch avatar pinx avatar rasjonell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

arangodb_ecto's Issues

Error creating database

I am using mix ecto.create to create database but getting the following error
** (Mix) The database for RegUser.Repo couldn't be created: %HTTPoison.Error{id: nil, reason: :econnrefused}

I am new to elixir and want to use ArangoDB via arango_ecto adapter.
Configurations in dev.exs file are:

Configure your database

config :reg_user, RegUser.Repo,
adapter: ArangoDB.Ecto,
username: "root",
password: "password",
database: "reg_user",
hostname: "10.0.21.6",
port: 8529,
pool_size: 10

Please help me to get through this.

Thanks in advance

Use Ecto 4.0?

Hi,

I'm starting a new phoenix project where Ecto 4.0.0 is the default version. However arangodb_ecto requires Ecto 2.2. I tried to use Ecto 2.2 but it is apparently unavailable on hex?

Improve documentation

Let's try to provide the same level of docs as Ecto and Postgrex.

Undocumented features:

  • Create edge collections
  • Preload feature

Use of Raw AQL Queries

First, thank you for maintaining this driver.

I'm new to Elixir/Phoenix (currently using NodeJs) and considering migrating to Elixir.

The ArangoDB JavaScript driver API allows to write raw AQL queries. Does this driver allow to write raw AQL queries? If so, is there a documentation on this?

Dynamic has_many

Hi,
The main thing I use ArangoDB is a dynamic link between multiple collections.

I.e. you can link a column named "media" to either a movie or a tv show and it will join easily.
Is this something you know if Ecto might be able to do? If that is the case I can surely help making arangodb_ecto working with the new db_connection etc.

Currently i'm using a forked Durango but as it has its limtis (i.e. not being able to use IN ARRAY in queries).

Changes needed for Ecto 3.0

After some experimenting, a few areas arose, where we need to make changes:

  • concurrent migrations was introduced
    The Adapter behaviour expects lock_for_migrations
  • Ecto.Date and Ecto.DateTime are now fully deprecated

Incompatible with Ecto 2.2

Scenario:

  • create a fresh app with mix phx.new
  • run mix phx.gen.schema to set up a migration file
  • add arangodb_ecto as dependency
  • replace Postgres adapter with ArangoDB.Ecto
  • run mix ecto.migrate

This error is thrown:

15:41:14.473 [error] Could not retrieve migrated versions. This error usually happens due to the following:

  * The database does not exist
  * The "schema_migrations" table, which Ecto uses for managing
    migrations, was defined by another library

To fix the first issue, run "mix ecto.create".

To address the second, you can run "mix ecto.drop" followed by
"mix ecto.create". Alternatively you may configure Ecto to use
another table for managing migrations:

    config :test, Test.Repo,
      migration_source: "some_other_table_for_schema_migrations"

The full error report is shown below.

** (FunctionClauseError) no function clause matching in ArangoDB.Ecto.Adapter.execute/6    
    (elixir) lib/keyword.ex:504: Keyword.delete_key/3
    (elixir) lib/keyword.ex:501: Keyword.delete_key/3
    (elixir) lib/keyword.ex:501: Keyword.delete_key/3
    (elixir) lib/keyword.ex:493: Keyword.put/3
    lib/test/repo.ex:9: Test.Repo.init/2
    (ecto) lib/ecto/repo/supervisor.ex:23: Ecto.Repo.Supervisor.runtime_config/4
    lib/test/repo.ex:2: Test.Repo.config/0
    (ecto) lib/ecto/migrator.ex:316: Ecto.Migrator.verbose_schema_migration/3
    (ecto) lib/ecto/migrator.ex:157: Ecto.Migrator.run/4
    (ecto) lib/mix/tasks/ecto.migrate.ex:83: anonymous fn/4 in Mix.Tasks.Ecto.Migrate.run/2

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.